projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0943820
)
compute average processor ticks per event in parsed output
author
jjenista
<jjenista>
Fri, 15 Oct 2010 21:34:44 +0000
(21:34 +0000)
committer
jjenista
<jjenista>
Fri, 15 Oct 2010 21:34:44 +0000
(21:34 +0000)
Robust/CoreProf/Trace.java
patch
|
blob
|
history
Robust/CoreProf/makefile
patch
|
blob
|
history
diff --git
a/Robust/CoreProf/Trace.java
b/Robust/CoreProf/Trace.java
index a5cf97379873978d4ffab0536b5aa771eff37b25..0d69195e7ed5919c96238fe04af5d5c154475442 100644
(file)
--- a/
Robust/CoreProf/Trace.java
+++ b/
Robust/CoreProf/Trace.java
@@
-513,10
+513,11
@@
public class Trace {
new Long( es.totalTime_ticks ).floatValue();
String strSelfStats =
- String.format( " total(ticks)=%12dK, %%self=%5.1f, count=%d",
+ String.format( " total(ticks)=%12dK, %%self=%5.1f, count=%d
, avgTicks=%d
",
es.totalTime_ticks/1000,
tSelf_perc,
- es.instanceCount );
+ es.instanceCount,
+ (int)((float)es.totalTime_ticks/(float)es.instanceCount) );
bw.write( strIndent+
strEventName+
diff --git
a/Robust/CoreProf/makefile
b/Robust/CoreProf/makefile
index f35f61f8f035c6afd6f29f362c002ec8d7c8470a..79ecaa140c38214288af9881090c6f3a483525df 100644
(file)
--- a/
Robust/CoreProf/makefile
+++ b/
Robust/CoreProf/makefile
@@
-9,4
+9,4
@@
run:
clean:
rm -f *.class
rm -f *~
- rm -f trace.out*
+