first is context version

Anonymous     Text only     13 Oct 2008    
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
piranha@gtv ~/dev/hg/hg>hg --lsprof log > /dev/null
CallCount Recursive Total(ms) Inline(ms) module:lineno(function)
7097 0 2.1191 0.2915 mercurial.cmdutil:607(_show)
+37746 0 0.1448 0.1162 +mercurial.ui:377(write)
+7097 0 0.1743 0.0893 +mercurial.util:1572(datestr)
+7097 0 0.3407 0.0410 +mercurial.cmdutil:671(_meaningful_parents)
+30649 0 0.0261 0.0261 +gettext:191(gettext)
+7097 0 0.9299 0.0256 +mercurial.context:87(date)
44843 0 0.1690 0.1336 mercurial.ui:377(write)
+37746 0 0.0286 0.0286 +<method 'extend' of 'list' objects>
+7097 0 0.0068 0.0068 +<method 'write' of 'file' objects>
7098 0 0.8624 0.1189 mercurial.changelog:137(read)
+7098 0 0.5255 0.1178 +mercurial.revlog:944(revision)
+14196 0 0.1582 0.0456 +mercurial.util:67(tolocal)
+14196 0 0.0203 0.0203 +<method 'split' of 'str' objects>
+7098 0 0.0117 0.0117 +<binascii.unhexlify>
+7098 0 0.0093 0.0093 +<method 'index' of 'str' objects>
7100 0 0.5281 0.1179 mercurial.revlog:944(revision)
+7157 0 0.1917 0.0557 +mercurial.revlog:894(chunk)
+7100 0 0.1161 0.0439 +mercurial.revlog:54(hash)
+7100 0 0.0541 0.0330 +mercurial.revlog:532(parents)
+7100 0 0.0211 0.0141 +mercurial.revlog:498(_loadindex)
+7100 0 0.0113 0.0113 +<mercurial.mpatch.patches>
1 0 2.6372 0.0945 mercurial.commands:1739(log)
+7097 0 2.2314 0.0484 +mercurial.cmdutil:596(show)
+14214 0 0.0465 0.0356 +mercurial.cmdutil:1099(iterate)
+7097 0 0.0452 0.0210 +mercurial.cmdutil:583(flush)
+7097 0 0.1483 0.0204 +mercurial.localrepo:101(__getitem__)
+7079 0 0.0068 0.0068 +mercurial.cmdutil:1116(fns_generator)
7082 0 0.0903 0.0903 <zlib.decompress>
7097 0 0.1743 0.0893 mercurial.util:1572(datestr)
+7097 0 0.0450 0.0450 +<time.strftime>
+14194 0 0.0200 0.0200 +<method 'replace' of 'str' objects>
+7097 0 0.0140 0.0140 +<time.gmtime>
+7097 0 0.0055 0.0055 +<abs>
+1 0 0.0005 0.0000 +mercurial.demandimport:71(__getattribute__)
14990 0 0.2796 0.0855 mercurial.context:15(__init__)
+14990 0 0.1784 0.0412 +hgext.parentrevspec:33(lookup)
+14990 0 0.0157 0.0157 +mercurial.revlog:523(rev)
14195 0 1.1613 0.0852 mercurial.context:50(__getattr__)
+7098 0 0.8624 0.1189 +mercurial.changelog:137(read)
+7892 0 0.1526 0.0444 +mercurial.context:15(__init__)
+7097 0 0.0546 0.0332 +mercurial.revlog:532(parents)
+7098 0 0.0066 0.0066 +mercurial.context:84(node)
14198 0 0.1087 0.0662 mercurial.revlog:532(parents)
+28396 0 0.0274 0.0274 +mercurial.revlog:528(node)
+14198 0 0.0150 0.0150 +mercurial.revlog:523(rev)
piranha@gtv ~/dev/hg/hg>hg --lsprof log > /dev/null
CallCount Recursive Total(ms) Inline(ms) module:lineno(function)
7095 0 1.6030 0.2480 mercurial.cmdutil:604(_show)
+7095 0 0.8562 0.1172 +mercurial.changelog:137(read)
+37730 0 0.1383 0.1100 +mercurial.ui:377(write)
+7095 0 0.1711 0.0878 +mercurial.util:1572(datestr)
+30635 0 0.0251 0.0251 +gettext:191(gettext)
+7095 0 0.0295 0.0208 +mercurial.cmdutil:680(_meaningful_parentrevs)
44825 0 0.1622 0.1271 mercurial.ui:377(write)
+37730 0 0.0283 0.0283 +<method 'extend' of 'list' objects>
+7095 0 0.0067 0.0067 +<method 'write' of 'file' objects>
7096 0 0.8565 0.1172 mercurial.changelog:137(read)
+7096 0 0.5238 0.1166 +mercurial.revlog:944(revision)
+14192 0 0.1560 0.0448 +mercurial.util:67(tolocal)
+14192 0 0.0197 0.0197 +<method 'split' of 'str' objects>
+7096 0 0.0117 0.0117 +<binascii.unhexlify>
+7096 0 0.0095 0.0095 +<method 'index' of 'str' objects>
7098 0 0.5264 0.1167 mercurial.revlog:944(revision)
+7151 0 0.1893 0.0552 +mercurial.revlog:894(chunk)
+7098 0 0.1156 0.0437 +mercurial.revlog:54(hash)
+7098 0 0.0549 0.0331 +mercurial.revlog:532(parents)
+7098 0 0.0218 0.0143 +mercurial.revlog:498(_loadindex)
+7098 0 0.0111 0.0111 +<mercurial.mpatch.patches>
1 0 1.9810 0.1011 mercurial.commands:1739(log)
+7095 0 1.7022 0.0437 +mercurial.cmdutil:596(show)
+14210 0 0.0459 0.0352 +mercurial.cmdutil:1114(iterate)
+7095 0 0.0445 0.0206 +mercurial.cmdutil:583(flush)
+7095 0 0.0082 0.0082 +mercurial.revlog:535(parentrevs)
+7095 0 0.0081 0.0081 +mercurial.revlog:528(node)
7077 0 0.0889 0.0889 <zlib.decompress>
7095 0 0.1711 0.0878 mercurial.util:1572(datestr)
+7095 0 0.0442 0.0442 +<time.strftime>
+14190 0 0.0194 0.0194 +<method 'replace' of 'str' objects>
+7095 0 0.0138 0.0138 +<time.gmtime>
+7095 0 0.0054 0.0054 +<abs>
+1 0 0.0005 0.0000 +mercurial.demandimport:71(__getattribute__)
7151 0 0.1893 0.0552 mercurial.revlog:894(chunk)
+7151 0 0.1047 0.0158 +mercurial.revlog:97(decompress)
+7151 0 0.0143 0.0143 +mercurial.revlog:537(start)
+7151 0 0.0070 0.0070 +mercurial.revlog:541(length)
+7149 0 0.0055 0.0055 +<len>
+34 0 0.0026 0.0002 +mercurial.revlog:895(loadcache)
14213 0 0.1562 0.0448 mercurial.util:67(tolocal)
+14216 0 0.0861 0.0347 +<method 'decode' of 'str' objects>
+14213 0 0.0253 0.0253 +<method 'encode' of 'unicode' objects>
7095 0 0.0442 0.0442 <time.strftime>