Skip to content

Instantly share code, notes, and snippets.

@r0h4n
Created June 18, 2017 13:37
Show Gist options
  • Save r0h4n/b8905c83789d40b434414957019d247d to your computer and use it in GitHub Desktop.
Save r0h4n/b8905c83789d40b434414957019d247d to your computer and use it in GitHub Desktop.
Tendrl profiling output
Sun Jun 18 16:14:39 2017 /var/lib/tendrl/profiling/ceph_integration/last_run_func_stat.pstat
10682443 function calls (11078493 primitive calls) in 143.184 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1623/1624 1.569 0.001 155.177 0.096 /usr/lib/python2.7/site-packages/tendrl/commons/objects/__init__.py:164(NodeContext.load)
16853/16854 0.897 0.000 84.614 0.005 /usr/lib/python2.7/site-packages/etcd/client.py:550(Client.read)
17232/17233 0.661 0.000 78.459 0.005 /usr/lib/python2.7/site-packages/etcd/client.py:838(Client.wrapper)
16099 1.400 0.000 72.053 0.004 /usr/lib/python2.7/site-packages/tendrl/commons/message.py:33(Message.__init__)
17232/17233 0.473 0.000 70.206 0.004 /usr/lib/python2.7/site-packages/etcd/client.py:910(Client.api_execute)
16859/16860 0.348 0.000 68.041 0.004 /usr/lib/python2.7/site-packages/urllib3/request.py:52(PoolManager.request)
17232/17233 0.816 0.000 67.755 0.004 /usr/lib/python2.7/site-packages/urllib3/poolmanager.py:141(PoolManager.urlopen)
16859/16860 0.354 0.000 67.645 0.004 /usr/lib/python2.7/site-packages/urllib3/request.py:74(PoolManager.request_encode_url)
97824 3.865 0.000 65.181 0.001 /usr/lib64/python2.7/inspect.py:987(getframeinfo)
16/17 0.000 0.000 60.946 3.585 /usr/lib/python2.7/site-packages/tendrl/ceph_integration/sds_sync/__init__.py:138(CephIntegrationSdsSyncStateThread.on_heartbeat)
17232/17233 1.527 0.000 60.808 0.004 /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:421(HTTPConnectionPool.urlopen)
16099 0.200 0.000 56.001 0.003 /usr/lib64/python2.7/inspect.py:1052(stack)
16099 0.778 0.000 55.743 0.003 /usr/lib64/python2.7/inspect.py:1025(getouterframes)
7/8 0.000 0.000 53.415 6.677 /usr/lib64/python2.7/site-packages/gevent/_threading.py:414(Queue.get)
7/8 0.000 0.000 53.415 6.677 /usr/lib64/python2.7/site-packages/gevent/_threading.py:139(Condition.wait)
17232/17233 1.383 0.000 42.218 0.002 /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:317(HTTPConnectionPool._make_request)
97824 4.922 0.000 39.834 0.000 /usr/lib64/python2.7/inspect.py:518(findsource)
195648 8.093 0.000 34.413 0.000 /usr/lib64/python2.7/inspect.py:440(getsourcefile)
17232/17233 0.539 0.000 32.962 0.002 /usr/lib64/python2.7/httplib.py:1053(HTTPConnection.getresponse)
17232/17233 1.098 0.000 30.503 0.002 /usr/lib64/python2.7/httplib.py:437(HTTPResponse.begin)
16/17 0.023 0.001 27.224 1.601 /usr/lib/python2.7/site-packages/tendrl/ceph_integration/sds_sync/__init__.py:180(CephIntegrationSdsSyncStateThread._sync_osd_utilization)
293472 6.558 0.000 21.026 0.000 /usr/lib64/python2.7/inspect.py:398(getfile)
8 0.000 0.000 21.007 2.626 /usr/lib64/python2.7/site-packages/gevent/threadpool.py:325(wrap_errors)
17232 0.565 0.000 20.033 0.001 /usr/lib64/python2.7/mimetools.py:24(HTTPMessage.__init__)
1624 0.162 0.000 18.314 0.011 /usr/lib/python2.7/site-packages/tendrl/commons/objects/__init__.py:303(NodeContext._copy_vars)
17232 0.183 0.000 17.836 0.001 /usr/lib64/python2.7/rfc822.py:88(HTTPMessage.__init__)
17232 4.813 0.000 17.653 0.001 /usr/lib64/python2.7/httplib.py:267(HTTPMessage.readheaders)
17 0.011 0.001 16.212 0.954 /usr/lib/python2.7/site-packages/tendrl/ceph_integration/sds_sync/__init__.py:208(CephIntegrationSdsSyncStateThread._sync_utilization)
1396 0.180 0.000 15.576 0.011 /usr/lib/python2.7/site-packages/tendrl/commons/objects/node_context/__init__.py:23(NodeContext.__init__)
2011 0.050 0.000 15.038 0.007 /usr/lib/python2.7/site-packages/tendrl/commons/objects/__init__.py:19(NodeContext.__init__)
2011 0.123 0.000 14.921 0.007 /usr/lib/python2.7/site-packages/tendrl/commons/objects/__init__.py:27(NodeContext.load_definition)
154755/154756 4.935 0.000 14.909 0.000 /usr/lib64/python2.7/socket.py:406(_fileobject.readline)
17 0.001 0.000 12.989 0.764 /usr/lib/python2.7/site-packages/tendrl/ceph_integration/ceph.py:865(heartbeat)
17 0.002 0.000 12.988 0.764 /usr/lib/python2.7/site-packages/tendrl/ceph_integration/ceph.py:847(_heartbeat)
17 0.098 0.006 12.922 0.760 /usr/lib/python2.7/site-packages/tendrl/ceph_integration/ceph.py:633(get_heartbeats)
16099 0.617 0.000 11.282 0.001 /usr/lib/python2.7/site-packages/tendrl/commons/event.py:13(Event.__init__)
@sankarshanmukhopadhyay
Copy link

Rohan, for the output you post above - what are the highlights? In other words, what should be the obvious things one would be looking for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment