Created
May 18, 2015 20:58
-
-
Save talwai/1ece431742c6ca7dd85f to your computer and use it in GitHub Desktop.
Example output of profiling the network check in dd-agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(venv)Aadityas-MacBook-Pro:dd-agent aadityatalwai$ python agent.py check network --profile | |
2015-05-18 16:56:36,856 | INFO | dd.collector | config(config.py:922) | initialized checks.d checks: ['ntp', 'consul', 'network'] | |
2015-05-18 16:56:36,856 | INFO | dd.collector | config(config.py:923) | initialization failed checks.d checks: [] | |
2015-05-18 16:56:36,856 | INFO | dd.collector | checks.collector(collector.py:443) | Running check network | |
2015-05-18 16:56:36,873 | INFO | dd.collector | checks(__init__.py:654) | | |
network | |
Memory Before (RSS): 18206720 | |
Memory After (RSS): 18243584 | |
Difference (RSS): 36864 | |
Memory Before (VMS): 2534727680 | |
Memory After (VMS): 2534727680 | |
Difference (VMS): 0 | |
2015-05-18 16:56:36,875 | INFO | dd.collector | collector(profile.py:71) | 2141 function calls (2126 primitive calls) in 0.016 seconds | |
Ordered by: cumulative time | |
List reduced from 157 to 20 due to restriction <20> | |
ncalls tottime percall cumtime percall filename:lineno(function) | |
1 0.000 0.000 0.016 0.016 /Users/aadityatalwai/datadog/vm/dd-agent/checks/__init__.py:597(run) | |
1 0.000 0.000 0.015 0.015 /Users/aadityatalwai/datadog/vm/dd-agent/checks.d/network.py:64(check) | |
1 0.000 0.000 0.015 0.015 /Users/aadityatalwai/datadog/vm/dd-agent/checks.d/network.py:227(_check_bsd) | |
6 0.000 0.000 0.012 0.002 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py:473(_eintr_retry_call) | |
2 0.000 0.000 0.007 0.004 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py:648(__init__) | |
2 0.000 0.000 0.007 0.004 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py:1186(_execute_child) | |
2 0.000 0.000 0.006 0.003 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py:767(communicate) | |
2 0.006 0.003 0.006 0.003 {method 'read' of 'file' objects} | |
2 0.006 0.003 0.006 0.003 {posix.read} | |
2 0.001 0.000 0.001 0.000 {posix.fork} | |
1 0.000 0.000 0.001 0.001 /Users/aadityatalwai/datadog/vm/dd-agent/checks.d/network.py:116(_submit_regexed_values) | |
2 0.000 0.000 0.000 0.000 /Users/aadityatalwai/datadog/vm/dd-agent/checks/__init__.py:559(_collect_internal_stats) | |
252 0.000 0.000 0.000 0.000 /Users/aadityatalwai/datadog/vm/dd-agent/venv/lib/python2.7/re.py:134(match) | |
1 0.000 0.000 0.000 0.000 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py:1140(info) | |
1 0.000 0.000 0.000 0.000 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py:1250(_log) | |
5 0.000 0.000 0.000 0.000 /Users/aadityatalwai/datadog/vm/dd-agent/checks.d/network.py:84(_submit_devicemetrics) | |
27 0.000 0.000 0.000 0.000 /Users/aadityatalwai/datadog/vm/dd-agent/checks/__init__.py:394(rate) | |
1 0.000 0.000 0.000 0.000 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py:1271(handle) | |
27 0.000 0.000 0.000 0.000 /Users/aadityatalwai/datadog/vm/dd-agent/aggregator.py:909(rate) | |
1 0.000 0.000 0.000 0.000 /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py:1303(callHandlers) | |
Metrics: | |
[] | |
Events: | |
[] | |
Service Checks: | |
[] | |
network | |
------- | |
- instance #0 [OK] Last run duration: 0.0153119564056 | |
- Collected 0 metrics, 0 events & 0 service checks | |
- Stats: | |
Memory Before (RSS): 18206720 | |
Memory After (RSS): 18243584 | |
Difference (RSS): 36864 | |
Memory Before (VMS): 2534727680 | |
Memory After (VMS): 2534727680 | |
Difference (VMS): 0 | |
(venv)Aadityas-MacBook-Pro:dd-agent aadityatalwai$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment