Mercurial > hg > Members > tatsuki > bench > jungle-core
changeset 161:7c4fc8732eb4 untilIndex
DefaultTransactionManager add write create index time
author | one |
---|---|
date | Mon, 08 Dec 2014 03:37:34 +0900 |
parents | 5dcb75f038f0 |
children | b81df9373a31 |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTransactionManager.java |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTransactionManager.java Sun Dec 07 19:16:18 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/transaction/DefaultTransactionManager.java Mon Dec 08 03:37:34 2014 +0900 @@ -1,5 +1,10 @@ package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.io.PrintWriter; import java.util.Iterator; import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.persistent.ChangeList; @@ -65,6 +70,17 @@ long t2 = System.currentTimeMillis(); System.out.println("createIndexTime =" + (t2 - t1)); + + File file = new File("./time/createParentIndexUntil"); + try { + PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(file,true))); + pw.println(t2 - t1); + pw.close(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + Index index = traverser.getIndex(); ParentIndex nulParentIndex = traverser.getParentIndex(); DefaultChangeSet newCs = new DefaultChangeSet(_newRoot, cs, list, uuid, _treeName, nextRevision, index,