How to examine performance bottlenecks: profile data "init"
Jari Aalto
jari.aalto at cante.net
Sun Jan 20 23:10:14 GMT 2008
* Sun 2008-01-20 Jari Aalto <jari.aalto at cante.net>
* Message-Id: k5m4eb4e.fsf at blue.sea.net
>
> See this: (1.0.0 / Cygwin):
>
> $ time bzr init
>
> real 0m18.170s
> user 0m2.884s
> sys 0m8.522s
Bazaar (bzr) 1.2.0.dev.0 (revno 3193)
cum inline name frame
2475.4 42.0 bzrlib @ __main__:64
1232.4 177.0 + [get_user_encoding]bzrlib.osutils @ bzrlib:19
389.0 25.0 ++ [mutter]bzrlib.trace @ bzrlib.osutils:62
353.0 33.0 +++ logging @ bzrlib.trace:54
108.0 65.0 ++++ string @ logging:29
43.0 43.0 +++++ [maketrans, lowercase, uppercase, @ string:526
99.0 41.0 ++++ threading @ logging:38
58.0 58.0 +++++ [deque]collections @ threading:13
48.0 48.0 ++++ traceback @ logging:29
23.0 23.0 ++++ atexit @ logging:1363
11.0 11.0 ++++ codecs @ logging:32
8.0 8.0 ++++ thread @ logging:37
8.0 8.0 ++++ sys @ logging:29
5.0 5.0 ++++ types @ logging:29
4.0 4.0 ++++ os @ logging:29
3.0 3.0 ++++ cStringIO @ logging:29
3.0 3.0 ++++ time @ logging:29
11.0 11.0 +++ codecs @ bzrlib.trace:53
305.0 17.0 ++ [l] [win32utils]bzrlib @ bzrlib.osutils:319
154.0 81.0 +++ ctypes @ bzrlib.win32utils:56
45.0 45.0 ++++ [Union, Structure, Array]_ctypes @ ctypes:10
11.0 11.0 ++++ [BigEndianStructure, LittleEndianS @ ctypes:516
7.0 7.0 ++++ os @ ctypes:6
4.0 4.0 ++++ [calcsize]struct @ ctypes:17
3.0 3.0 ++++ sys @ ctypes:6
2.0 2.0 ++++ [_memmove_addr, _memset_addr, _str @ ctypes:461
1.0 1.0 ++++ [_Pointer]_ctypes @ ctypes:11
75.0 34.0 +++ struct @ bzrlib.win32utils:23
41.0 41.0 ++++ [Struct, error]_struct @ struct:30
59.0 59.0 +++ win32file @ bzrlib.win32utils:68
170.4 170.4 ++ [StringIO]cStringIO @ bzrlib.osutils:17
98.0 36.0 ++ [l] sha @ bzrlib.osutils:613
62.0 21.0 +++ [sha1]hashlib @ sha:6
41.0 41.0 ++++ _hashlib @ hashlib:102
26.0 15.0 ++ [symbol_versioning]bzrlib @ bzrlib.osutils:57
11.0 11.0 +++ [warn]warnings @ bzrlib.symbol_versioning:49
15.0 15.0 ++ [lazy_import]bzrlib.lazy_import @ bzrlib.osutils:26
12.0 12.0 ++ os @ bzrlib.osutils:18
12.0 12.0 ++ sys @ bzrlib.osutils:23
10.0 10.0 ++ time @ bzrlib.osutils:24
9.0 9.0 ++ stat @ bzrlib.osutils:20
9.0 9.0 ++ re @ bzrlib.osutils:19
1018.0 23.0 + [l] [config]bzrlib @ bzrlib.plugin:60
995.0 320.0 ++ [l] [configobj]bzrlib.util.configo @ bzrlib.config:125
563.0 43.0 +++ compiler @ bzrlib.util.configobj.configobj:29
267.0 32.0 ++++ [compile, compileFile]compiler.pyc @ compiler:26
135.0 41.0 +++++ [pyassem, misc, future, symbols]co @ compiler.pycodegen:9
55.0 27.0 ++++++ dis @ compiler.pyassem:3
28.0 28.0 +++++++ [*]opcode @ dis:6
27.0 27.0 ++++++ new @ compiler.pyassem:4
7.0 7.0 ++++++ [misc]compiler @ compiler.pyassem:7
4.0 4.0 ++++++ types @ compiler.symbols:6
1.0 1.0 ++++++ [ast]compiler @ compiler.symbols:3
24.0 24.0 +++++ imp @ compiler.pycodegen:1
21.0 21.0 +++++ os @ compiler.pycodegen:2
19.0 19.0 +++++ struct @ compiler.pycodegen:4
19.0 19.0 +++++ marshal @ compiler.pycodegen:3
9.0 9.0 +++++ [ast, parse, walk, syntax]compiler @ compiler.pycodegen:8
8.0 8.0 +++++ [StringIO]cStringIO @ compiler.pycodegen:6
222.0 26.0 ++++ [parse, parseFile]compiler.transfo @ compiler:24
70.0 61.0 +++++ [*]compiler.ast @ compiler.transformer:28
9.0 9.0 ++++++ [CO_VARARGS, CO_VARKEYWORDS]compil @ compiler.ast:5
64.0 64.0 +++++ parser @ compiler.transformer:29
29.0 29.0 +++++ symbol @ compiler.transformer:30
28.0 28.0 +++++ token @ compiler.transformer:31
5.0 5.0 +++++ sys @ compiler.transformer:32
31.0 31.0 ++++ [walk]compiler.visitor @ compiler:25
49.0 49.0 +++ [VdtMissingValue]validate @ bzrlib.util.configobj.configobj:92
32.0 32.0 +++ [generators]__future__ @ bzrlib.util.configobj.configobj:19
6.0 6.0 +++ re @ bzrlib.util.configobj.configobj:26
5.0 5.0 +++ [warn]warnings @ bzrlib.util.configobj.configobj:34
5.0 5.0 +++ [StringTypes]types @ bzrlib.util.configobj.configobj:33
5.0 5.0 +++ [BOM_UTF8, BOM_UTF16, BOM_UTF16_BE @ bzrlib.util.configobj.configobj:36
5.0 5.0 +++ sys @ bzrlib.util.configobj.configobj:21
4.0 4.0 +++ os @ bzrlib.util.configobj.configobj:26
1.0 1.0 +++ sre_parse @ sre_compile:505
149.0 59.0 + locale @ bzrlib.osutils:1354
47.0 47.0 ++ operator @ locale:165
43.0 43.0 ++ [*]_locale @ locale:28
21.0 21.0 + bzrlib.plugin @ bzrlib:50
13.0 13.0 + [l] [plugins]bzrlib @ bzrlib.plugin:107
2325.0 633.0 [RepositoryFormatKnitPack1]bzrlib. @ bzrlib.bzrdir:2474
1221.0 77.0 + [bzrdir, deprecated_graph, errors, @ bzrlib.repofmt.pack_repo:43
636.0 105.0 ++ [cache_utf8, debug, diff, errors, @ bzrlib.knit:82
272.0 29.0 +++ [TransformPreview, TreeTransform, @ bzrlib.merge:51
241.0 39.0 ++++ tempfile @ bzrlib.transform:20
159.0 29.0 +++++ [Random]random @ tempfile:33
46.0 46.0 ++++++ [hexlify]binascii @ random:46
43.0 43.0 ++++++ [log, exp, pi, e, ceil]math @ random:43
41.0 41.0 ++++++ _random @ random:67
43.0 43.0 +++++ fcntl @ tempfile:40
1.0 1.0 ++++ bzrlib.ui @ bzrlib.transform:46
1.0 1.0 ++++ [DummyProgress, ProgressPhase]bzrl @ bzrlib.transform:38
104.0 42.0 +++ difflib @ bzrlib.diff:17
62.0 27.0 ++++ heapq @ difflib:35
35.0 35.0 +++++ [heappush, heappop, heapify, heapr @ heapq:307
60.0 60.0 +++ shutil @ bzrlib.diff:20
34.0 21.0 +++ [PlanWeaveMerge]bzrlib.versionedfi @ bzrlib.merge:55
13.0 12.0 ++++ [TextMerge]bzrlib.textmerge @ bzrlib.versionedfile:39
1.0 1.0 +++++ bzrlib.patiencediff @ bzrlib.textmerge:21
29.0 12.0 +++ [Merge3]bzrlib.merge3 @ bzrlib.merge:45
17.0 16.0 ++++ [check_text_lines]bzrlib.textfile @ bzrlib.merge3:24
1.0 1.0 +++++ [file_iterator]bzrlib.osutils @ bzrlib.textfile:23
12.0 11.0 +++ [unique_lcs_py, recurse_matches_py @ bzrlib.patiencediff:133
1.0 1.0 ++++ difflib @ bzrlib._patiencediff_py:20
11.0 11.0 +++ errno @ bzrlib.merge:19
8.0 8.0 +++ [unique_lcs_c, recurse_matches_c, @ bzrlib.patiencediff:127
1.0 1.0 +++ [check_text_lines]bzrlib.textfile @ bzrlib.merge:49
331.0 46.0 ++ [SubElement, Element, Serializer]b @ bzrlib.xml5:26
285.0 79.0 +++ [ElementTree, SubElement, Element, @ bzrlib.xml_serializer:31
149.0 61.0 ++++ [*]_elementtree @ xml.etree.cElementTree:3
47.0 15.0 +++++ [ElementTree]xml.etree @ <unknown>:3
21.0 21.0 ++++++ ElementPath @ xml.etree.ElementTree:136
5.0 5.0 ++++++ sys @ xml.etree.ElementTree:112
3.0 3.0 ++++++ re @ xml.etree.ElementTree:112
3.0 3.0 ++++++ string @ xml.etree.ElementTree:112
41.0 41.0 +++++ [__doc__]pyexpat @ profile_imports:137
57.0 57.0 ++++ _xmlplus @ xml:32
51.0 51.0 ++ [Z_DEFAULT_COMPRESSION]zlib @ bzrlib.knit:70
47.0 14.0 ++ [GzipFile, bytes_to_gzip]bzrlib.tu @ bzrlib.knit:103
33.0 33.0 +++ gzip @ bzrlib.tuned_gzip:23
42.0 22.0 ++ bzrlib.weave @ bzrlib.knit:113
18.0 18.0 +++ [_read_weave_v5, write_weave_v5]bz @ bzrlib.weave:93
2.0 2.0 +++ [copy]copy @ bzrlib.weave:71
14.0 14.0 ++ [_load_data_py]bzrlib._knit_load_d @ bzrlib.knit:2694
13.0 13.0 ++ [_load_data_c]bzrlib._knit_load_da @ bzrlib.knit:2692
8.0 8.0 ++ operator @ bzrlib.knit:66
1.0 1.0 ++ os @ bzrlib.knit:67
1.0 1.0 ++ [cache_utf8, inventory, errors, xm @ bzrlib.xml6:17
426.0 19.0 + [KnitRepository]bzrlib.repofmt.kni @ bzrlib.repofmt.pack_repo:59
332.0 35.0 ++ [VersionedFileStore]bzrlib.store.v @ bzrlib.repofmt.knitrepo:49
223.0 72.0 +++ urllib @ bzrlib.store:29
151.0 43.0 ++++ socket @ urllib:26
61.0 61.0 +++++ _ssl @ socket:50
47.0 47.0 +++++ _socket @ socket:45
15.0 15.0 +++ [AtomicFile]bzrlib.atomicfile @ bzrlib.store.versioned:34
8.0 8.0 +++ [adler32]zlib @ bzrlib.store:30
8.0 8.0 +++ os @ bzrlib.store:27
7.0 7.0 +++ errno @ bzrlib.store.versioned:21
6.0 6.0 +++ [warn]warnings @ bzrlib.store.versioned:25
6.0 6.0 +++ urllib @ bzrlib.store.versioned:24
5.0 5.0 +++ [errors, osutils]bzrlib @ bzrlib.store.versioned:27
5.0 5.0 +++ bzrlib @ bzrlib.store:32
5.0 5.0 +++ [StringIO]cStringIO @ bzrlib.store:28
4.0 4.0 +++ [StringIO]cStringIO @ bzrlib.store.versioned:23
4.0 4.0 +++ os @ bzrlib.store.versioned:22
1.0 1.0 +++ [read_weave, write_weave_v5]bzrlib @ bzrlib.store.versioned:31
57.0 57.0 ++ [CommitBuilder, MetaDirRepository, @ bzrlib.repofmt.knitrepo:41
17.0 13.0 ++ [bencode]bzrlib.util @ bzrlib.repofmt.knitrepo:51
4.0 4.0 +++ [StringType, IntType, LongType, Di @ bzrlib.util.bencode:93
1.0 1.0 ++ [needs_read_lock, needs_write_lock @ bzrlib.repofmt.knitrepo:40
41.0 28.0 + [KnitRevisionStore]bzrlib.store.re @ bzrlib.repofmt.pack_repo:67
8.0 8.0 ++ [StringIO]cStringIO @ bzrlib.store.revision:24
4.0 4.0 ++ [lazy_import]bzrlib.lazy_import @ bzrlib.store.revision:26
1.0 1.0 ++ [RevisionStore]bzrlib.store.revisi @ bzrlib.store.revision.knit:30
4.0 4.0 + [lazy_import]bzrlib.lazy_import @ bzrlib.repofmt.pack_repo:17
722.0 23.0 bzrlib.commands @ __main__:96
699.0 34.0 + [Option]bzrlib.option @ bzrlib.commands:56
498.0 46.0 ++ [l] [log]bzrlib @ bzrlib.option:526
167.0 21.0 +++ [RevisionInfo]bzrlib.revisionspec @ bzrlib.log:79
85.0 40.0 ++++ bisect @ bzrlib.revisionspec:18
45.0 45.0 +++++ [bisect_right, bisect_left, insort @ bisect:82
61.0 61.0 ++++ datetime @ bzrlib.revisionspec:19
160.0 144.0 +++ [BzrCommandError]bzrlib.errors @ bzrlib.log:68
16.0 16.0 ++++ [MalformedHunkHeader, MalformedLin @ bzrlib.errors:25
72.0 22.0 +++ [NULL_REVISION]bzrlib.revision @ bzrlib.log:76
29.0 12.0 ++++ [all_descendants, Graph, node_dist @ bzrlib.revision:25
17.0 17.0 +++++ [topo_sort]bzrlib.tsort @ bzrlib.deprecated_graph:18
21.0 21.0 ++++ [DummyProgress]bzrlib.progress @ bzrlib.revision:32
52.0 52.0 +++ [izip]itertools @ bzrlib.log:53
1.0 1.0 +++ [config, lazy_regex, registry, sym @ bzrlib.log:62
156.0 103.0 ++ [l] optparse @ bzrlib.option:394
26.0 25.0 +++ [gettext]gettext @ optparse:84
1.0 1.0 ++++ [ENOENT]errno @ gettext:50
26.0 26.0 +++ textwrap @ optparse:71
1.0 1.0 +++ [normalize]locale @ gettext:131
11.0 11.0 ++ [l] [registry]bzrlib @ bzrlib.option:437
507.0 88.0 bzrlib.builtins @ bzrlib.commands:102
213.0 46.0 + [l] [bzrdir]bzrlib @ bzrlib.builtins:1290
86.0 16.0 ++ [l] [lockable_files]bzrlib @ bzrlib.bzrdir:1621
44.0 44.0 +++ bzrlib.urlutils @ bzrlib.lockable_files:31
26.0 13.0 +++ bzrlib.transactions @ bzrlib.lockable_files:30
13.0 13.0 ++++ [IdentityMap, NullIdentityMap]bzrl @ bzrlib.transactions:42
48.0 18.0 ++ [l] [lockdir]bzrlib @ bzrlib.bzrdir:1790
30.0 15.0 +++ [read_stanza, Stanza]bzrlib.rio @ bzrlib.lockdir:132
15.0 15.0 ++++ [IterableFile]bzrlib.iterablefile @ bzrlib.rio:35
33.0 19.0 ++ [LocalTransport]bzrlib.transport.l @ bzrlib.bzrdir:79
9.0 9.0 +++ os @ bzrlib.transport.local:22
5.0 5.0 +++ [ST_MODE, S_ISDIR, ST_SIZE, S_IMOD @ bzrlib.transport.local:23
71.0 35.0 + [cmd_bundle_info]bzrlib.bundle.com @ bzrlib.builtins:4472
12.0 12.0 ++ [StringIO]StringIO @ bzrlib.bundle:17
12.0 12.0 ++ [lazy_import]bzrlib.lazy_import @ bzrlib.bundle:19
6.0 6.0 ++ sys @ bzrlib.bundle.commands:23
5.0 5.0 ++ [StringIO]cStringIO @ bzrlib.bundle.commands:24
1.0 1.0 ++ [Option]bzrlib.option @ bzrlib.bundle.commands:39
47.0 15.0 + [cmd_version_info]bzrlib.cmd_versi @ bzrlib.builtins:4470
32.0 19.0 ++ [version_info_formats]bzrlib @ bzrlib.cmd_version_info:27
7.0 7.0 +++ time @ bzrlib.version_info_formats:19
6.0 6.0 +++ [local_time_offset, format_date]bz @ bzrlib.version_info_formats:21
34.0 34.0 + [StringIO]StringIO @ bzrlib.builtins:20
22.0 22.0 + [cmd_resolve, cmd_conflicts, resto @ bzrlib.builtins:4471
16.0 16.0 + [cmd_sign_my_commits]bzrlib.sign_m @ bzrlib.builtins:4475
14.0 13.0 + [cmd_versionedfile_list, cmd_weave @ bzrlib.builtins:4476
1.0 1.0 ++ [Command]bzrlib.commands @ bzrlib.weave_commands:25
2.0 2.0 + os @ bzrlib.builtins:19
272.0 38.0 bzrlib.plugins.launchpad @ <unknown>:1
122.0 106.0 + [topic_registry]bzrlib.help_topics @ bzrlib.plugins.launchpad:26
10.0 10.0 ++ bzrlib @ bzrlib.help_topics:38
6.0 6.0 ++ sys @ bzrlib.help_topics:36
103.0 43.0 + [register_lazy_transport]bzrlib.tr @ bzrlib.plugins.launchpad:25
35.0 35.0 ++ [l] urlparse @ bzrlib.transport:164
8.0 8.0 ++ [StringIO]cStringIO @ bzrlib.transport:29
6.0 6.0 ++ re @ bzrlib.transport:30
5.0 5.0 ++ [lazy_import]bzrlib.lazy_import @ bzrlib.transport:33
5.0 5.0 ++ sys @ bzrlib.transport:31
1.0 1.0 ++ [note, mutter, warning]bzrlib.trac @ bzrlib.transport:61
9.0 9.0 + [Command, Option, register_command @ bzrlib.plugins.launchpad:24
248.0 50.0 [WorkingTreeFormat4]bzrlib.working @ bzrlib.bzrdir:2474
83.0 22.0 + bzrlib.mutabletree @ bzrlib.workingtree:90
61.0 24.0 ++ [errors, osutils, tree]bzrlib @ bzrlib.mutabletree:36
16.0 15.0 +++ [delta, osutils, revision, conflic @ bzrlib.tree:25
1.0 1.0 ++++ [deprecated_function]bzrlib.symbol @ bzrlib.delta:23
12.0 12.0 +++ [InterObject]bzrlib.inter @ bzrlib.tree:36
9.0 9.0 +++ [deque]collections @ bzrlib.tree:21
59.0 58.0 + [l] [WorkingTreeFormat4]bzrlib.wor @ bzrlib.workingtree:2949
1.0 1.0 ++ [l] [revision]bzrlib @ bzrlib.workingtree_4:1374
55.0 55.0 + [InventoryEntry, Inventory, ROOT_I @ bzrlib.workingtree:87
1.0 1.0 + [mutter, note]bzrlib.trace @ bzrlib.workingtree:105
226.0 225.0 [l] [GraphIndexBuilder]bzrlib.inde @ bzrlib.repofmt.pack_repo:2107
1.0 1.0 + [bisect_right]bisect @ bzrlib.index:27
223.0 25.0 [l] [dirstate]bzrlib @ bzrlib.workingtree_4:1290
161.0 19.0 + [cache_utf8, debug, errors, invent @ bzrlib.dirstate:214
79.0 79.0 ++ msvcrt @ bzrlib.lock:97
52.0 52.0 ++ win32con @ bzrlib.lock:92
9.0 9.0 ++ fcntl @ bzrlib.lock:87
1.0 1.0 ++ ctypes @ bzrlib.lock:97
1.0 1.0 ++ [errors, osutils, trace]bzrlib @ bzrlib.lock:40
13.0 13.0 + [_read_dirblocks_py, bisect_dirblo @ bzrlib.dirstate:2666
10.0 10.0 + binascii @ bzrlib.dirstate:204
9.0 9.0 + [_read_dirblocks_c, bisect_dirbloc @ bzrlib.dirstate:2658
4.0 4.0 + struct @ bzrlib.dirstate:209
1.0 1.0 + time @ bzrlib.dirstate:211
95.0 45.0 copy @ bzrlib.inspect_for_copy:72
50.0 50.0 + [PyStringMap]org.python.core @ copy:59
76.0 71.0 bzrlib.plugins.multiparent @ <unknown>:1
5.0 5.0 + [lazy_import]bzrlib.lazy_import @ bzrlib.plugins.multiparent:7
71.0 71.0 termios @ bzrlib.osutils:1046
56.0 41.0 [BzrBranchFormat6]bzrlib.branch @ bzrlib.bzrdir:2474
15.0 15.0 + [Hooks]bzrlib.hooks @ bzrlib.branch:57
53.0 53.0 [l] [RevisionTree]bzrlib.revisiont @ bzrlib.repository:1684
34.0 22.0 bzrlib.ui @ bzrlib.commands:789
7.0 7.0 + sys @ bzrlib.ui:31
5.0 5.0 + [lazy_import]bzrlib.lazy_import @ bzrlib.ui:33
25.0 15.0 bzrlib.breakin @ __main__:84
10.0 10.0 + signal @ bzrlib.breakin:18
24.0 24.0 [ExternalCommand]bzrlib.externalco @ bzrlib.commands:149
16.0 16.0 bzrlib.lazy_regex @ __main__:81
15.0 15.0 [*]encodings.utf_8 @ encodings:97
14.0 14.0 [l] [debug]bzrlib @ bzrlib.trace:132
14.0 14.0 [l] [BasicTags]bzrlib.tag @ bzrlib.branch:2098
13.0 13.0 [l] imp @ bzrlib.plugin:172
13.0 13.0 bzrlib.inspect_for_copy @ __main__:78
12.0 11.0 [TextUIFactory]bzrlib.ui.text @ bzrlib.commands:790
1.0 1.0 + [lazy_import]bzrlib.lazy_import @ bzrlib.ui.text:24
12.0 12.0 bzrlib.decorators @ __main__:87
11.0 11.0 [l] posixpath @ bzrlib.osutils:266
10.0 10.0 socket @ bzrlib.lockdir:429
10.0 10.0 [l] urllib @ bzrlib.urlutils:70
4.0 4.0 [l] errno @ bzrlib.transport:346
3.0 3.0 sre_parse @ sre_compile:505
2.0 2.0 bzrlib.config @ bzrlib.commands:646
1.0 1.0 [l] re @ bzrlib.config:867
1.0 1.0 [l] [osutils]bzrlib @ bzrlib.atomicfile:66
1.0 1.0 [l] socket @ bzrlib.atomicfile:58
1.0 1.0 [l] [osutils]bzrlib @ bzrlib.commands:450
1.0 1.0 codecs @ bzrlib.trace:177
--
Welcome to FOSS revolution: we fix and modify until it shines
More information about the bazaar
mailing list