Created
March 17, 2016 13:37
-
-
Save gregoryyoung/9738c8f558602a4428fa to your computer and use it in GitHub Desktop.
This file contains 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
greg@demon:~/src/PrivateI/scriptcs$ scriptcs -install PrivateEyePack -PackageVersion 0.1.5 | |
Installing packages... | |
Installed: PrivateEyePack 0.1.5 | |
Package installation succeeded. | |
Saving packages in scriptcs_packages.config... | |
Creating scriptcs_packages.config... | |
Added PrivateEyePack (v0.1.5) to scriptcs_packages.config | |
Successfully updated scriptcs_packages.config. | |
greg@demon:~/src/PrivateI/scriptcs$ scriptcs | |
scriptcs (ctrl-c to exit or :help for help) | |
> using ScriptCs.PrivateEye | |
(1,2): warning CS0105: The using directive for `ScriptCs.PrivateEye' appeared previously in this namespace | |
> var prof = Require<PEye>() | |
> prof.StartListening() | |
Starting TCP listening on TCP endpoint: 127.0.0.1:4444. | |
> Segments count: 1, buffers count: 16, should be when full: 16 | |
TCP connection accepted | |
Received identification Process Id 17126, Mono PrivateEye v0.4.0 | |
e prof.EnableAllocationTracking() | |
> prof.EnableMethodTracking() | |
> prof.MostCalledMethods().Take(1) | |
[ | |
{ | |
"Name": "System.Void EventStore.Core.Bus.QueueStatsCollector:ProcessingStarted (System.Type,int)", | |
"CalledCount": 20465, | |
"ExceptionsThrown": 0, | |
"ExceptionsCaught": 0, | |
"AllocationsMadeCount": 0, | |
"AllocationsMadeSize": 0, | |
"EffectiveAllocationsMadeCount": 0, | |
"EffectiveAllocationsMadeSize": 0, | |
"TailCalls": 0, | |
"TotalTime": 10533182, | |
"TimeUnder": 0, | |
"AllocatedCount": 0, | |
"CallsToCount": 0, | |
"CalledFromCount": 1 | |
} | |
] | |
> prof.MostAllocatingMethods().Take(1) | |
[ | |
{ | |
"Name": "NLog.Common.AsyncLogEventInfo[] NLog.Targets.Wrappers.AsyncRequestQueue:DequeueBatch (int)", | |
"CalledCount": 1879, | |
"ExceptionsThrown": 0, | |
"ExceptionsCaught": 0, | |
"AllocationsMadeCount": 5057, | |
"AllocationsMadeSize": 182160, | |
"EffectiveAllocationsMadeCount": 0, | |
"EffectiveAllocationsMadeSize": 0, | |
"TailCalls": 0, | |
"TotalTime": 18362346, | |
"TimeUnder": 0, | |
"AllocatedCount": 2, | |
"CallsToCount": 0, | |
"CalledFromCount": 1 | |
} | |
] | |
> prof.MostAllocatedTypes().Take(1) | |
[ | |
{ | |
"Name": "System.String", | |
"ThrownCount": 0, | |
"AllocatedCount": 1664, | |
"AllocatedSize": 212046 | |
} | |
] | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment