Skip to content

Instantly share code, notes, and snippets.

@benbu
Created November 22, 2013 17:30
Show Gist options
  • Save benbu/7603767 to your computer and use it in GitHub Desktop.
Save benbu/7603767 to your computer and use it in GitHub Desktop.
python profile of uvcdat startup, sorted by cumulative time
~/src/uvcdat$ python -m cProfile -o profile_dump vistrails/vistrails/uvcdat.py
~/src/uvcdat$ python -m pstats
% read profile_dump
profile_dump% sort cumtime
profile_dump% stats 50
Fri Nov 22 10:23:41 2013 profile_dump
6055258 function calls (5987660 primitive calls) in 19.721 seconds
Ordered by: cumulative time
List reduced from 13164 to 50 due to restriction <50>
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.002 0.002 20.155 20.155 vistrails/vistrails/uvcdat.py:1(<module>)
1 0.000 0.000 17.773 17.773 vistrails/vistrails/gui/application.py:711(start_application)
1 0.001 0.001 17.221 17.221 vistrails/vistrails/gui/application.py:131(init)
1 0.000 0.000 9.642 9.642 vistrails/vistrails/core/startup.py:105(init)
2 0.001 0.001 9.640 4.820 vistrails/vistrails/core/packagemanager.py:434(initialize_packages)
1 0.000 0.000 9.639 9.639 vistrails/vistrails/core/startup.py:563(installPackages)
16 0.004 0.000 9.508 0.594 vistrails/vistrails/core/modules/module_registry.py:1424(initialize_package)
16 0.000 0.000 9.297 0.581 vistrails/vistrails/core/modules/package.py:355(initialize)
1 0.000 0.000 6.275 6.275 vistrails/vistrails/packages/vtk/init.py:1123(initialize)
1 0.002 0.002 5.333 5.333 vistrails/vistrails/gui/application.py:561(createWindows)
1860/1 0.003 0.000 4.695 4.695 vistrails/vistrails/packages/vtk/init.py:764(setAllPorts)
1860 0.069 0.000 4.692 0.003 vistrails/vistrails/packages/vtk/init.py:723(addPorts)
1 0.000 0.000 4.274 4.274 vistrails/vistrails/gui/uvcdat/mainwindow.py:47(__init__)
1 0.000 0.000 4.117 4.117 vistrails/vistrails/gui/uvcdat/mainwindow.py:131(createDockWindows)
1 0.001 0.001 4.006 4.006 vistrails/vistrails/gui/uvcdat/variable.py:42(__init__)
1 0.000 0.000 3.108 3.108 vistrails/vistrails/gui/uvcdat/variable.py:280(createESGFTab)
1 0.009 0.009 3.106 3.106 vistrails/vistrails/gui/uvcdat/esgf.py:286(__init__)
97502/90881 0.458 0.000 2.993 0.000 vistrails/vistrails/core/modules/package.py:256(_import)
1 0.000 0.000 2.790 2.790 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cdms2/restApi.py:30(get_xmlelement)
97531/90910 1.742 0.000 2.512 0.000 {apply}
292 2.406 0.008 2.406 0.008 {method 'recv' of '_socket.socket' objects}
24504 0.069 0.000 2.046 0.000 vistrails/vistrails/core/modules/module_registry.py:1350(add_port)
1 0.000 0.000 1.901 1.901 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py:123(urlopen)
1 0.000 0.000 1.901 1.901 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py:386(open)
1 0.000 0.000 1.901 1.901 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py:414(_open)
2 0.000 0.000 1.901 0.951 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py:374(_call_chain)
1 0.000 0.000 1.901 1.901 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py:1213(http_open)
1 0.000 0.000 1.901 1.901 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py:1139(do_open)
67 0.001 0.000 1.795 0.027 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py:406(readline)
1 0.000 0.000 1.793 1.793 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py:1009(getresponse)
1 0.000 0.000 1.793 1.793 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py:402(begin)
1 0.000 0.000 1.793 1.793 /build/install/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py:363(_read_status)
1 1.297 1.297 1.683 1.683 {built-in method exec_}
24504 0.120 0.000 1.554 0.000 vistrails/vistrails/core/modules/module_registry.py:1303(create_port_spec)
1860 0.008 0.000 1.510 0.001 vistrails/vistrails/packages/vtk/vtk_parser.py:160(parse)
1 0.000 0.000 1.497 1.497 vistrails/vistrails/packages/vtk/init.py:1061(createAllModules)
1859/46 0.021 0.000 1.497 0.033 vistrails/vistrails/packages/vtk/init.py:1010(createModule)
1860 0.555 0.000 1.478 0.001 vistrails/vistrails/packages/vtk/vtk_parser.py:342(_organize_methods)
24504 0.173 0.000 1.365 0.000 vistrails/vistrails/core/vistrail/port_spec.py:61(__init__)
15419 0.023 0.000 1.289 0.000 vistrails/vistrails/core/modules/module_registry.py:1372(add_input_port)
1 0.000 0.000 1.237 1.237 vistrails/vistrails/gui/application.py:702(initialize_uvcdat_plots)
1 0.000 0.000 1.237 1.237 vistrails/vistrails/core/uvcdat/plotmanager.py:89(load_plots)
1860 0.071 0.000 1.227 0.001 vistrails/vistrails/packages/vtk/init.py:433(addSetGetPorts)
4 0.001 0.000 1.219 0.305 vistrails/vistrails/core/uvcdat/plot_registry.py:82(load_plot_package)
17 0.003 0.000 1.217 0.072 vistrails/vistrails/core/uvcdat/plot_registry.py:185(load)
1859 1.087 0.001 1.088 0.001 vistrails/vistrails/packages/vtk/init.py:1032(is_abstract)
16 0.000 0.000 1.071 0.067 vistrails/vistrails/core/db/io.py:65(load_vistrail)
15 0.001 0.000 1.070 0.071 vistrails/vistrails/core/db/locator.py:469(load)
15 0.000 0.000 0.998 0.067 vistrails/vistrails/db/services/locator.py:400(load)
15 0.000 0.000 0.996 0.066 vistrails/vistrails/db/services/io.py:480(open_bundle_from_zip_xml)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment