Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created March 17, 2016 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregoryyoung/ab4aab547fdb35d51808 to your computer and use it in GitHub Desktop.
Save gregoryyoung/ab4aab547fdb35d51808 to your computer and use it in GitHub Desktop.
greg@clown:~/src/PrivateI/scriptcs$ scriptcs -install PrivateEyePack -packageversion 0.1.2
Installing packages...
Installed: PrivateEyePack 0.1.2
Package installation succeeded.
Saving packages in scriptcs_packages.config...
Creating scriptcs_packages.config...
Added PrivateEyePack (v0.1.2) to scriptcs_packages.config
Successfully updated scriptcs_packages.config.
greg@clown:~/src/PrivateI/scriptcs$ scriptcs
scriptcs (ctrl-c to exit or :help for help)
> using ScriptCs.PEye
(3,1): warning CS0105: The using directive for `ScriptCs.PEye' appeared previously in this namespace
> var prof = Requires<ScriptCs.PEye.PrivateEye>()
(1,13): error CS0103: The name `Requires' does not exist in the current context
> var prof = Require<ScriptCs.PEye.PrivateEye>()
> 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 15850, Mono PrivateEye v0.4.0
> prof.EnableMethodTracking()
> prof.MostCalledMethods().Take(3)
[
{
"Name": "System.Boolean EventStore.Core.Bus.MessageHandler`1:TryHandle (EventStore.Core.Messaging.Message)",
"CalledCount": 1197672,
"ExceptionsThrown": 0,
"ExceptionsCaught": 0,
"AllocationsMadeCount": 0,
"AllocationsMadeSize": 0,
"EffectiveAllocationsMadeCount": 0,
"EffectiveAllocationsMadeSize": 0,
"TailCalls": 0,
"TotalTime": 22631504244,
"TimeUnder": 19775901002,
"AllocatedCount": 0,
"CallsToCount": 1,
"CalledFromCount": 1
},
{
"Name": "System.Void EventStore.Core.Bus.QueueStatsCollector:ProcessingEnded (int)",
"CalledCount": 751281,
"ExceptionsThrown": 0,
"ExceptionsCaught": 0,
"AllocationsMadeCount": 0,
"AllocationsMadeSize": 0,
"EffectiveAllocationsMadeCount": 0,
"EffectiveAllocationsMadeSize": 0,
"TailCalls": 0,
"TotalTime": 2543986420,
"TimeUnder": 0,
"AllocatedCount": 0,
"CallsToCount": 0,
"CalledFromCount": 1
},
{
"Name": "System.Void EventStore.Core.Bus.QueueStatsCollector:ProcessingStarted (System.Type,int)",
"CalledCount": 751237,
"ExceptionsThrown": 0,
"ExceptionsCaught": 0,
"AllocationsMadeCount": 0,
"AllocationsMadeSize": 0,
"EffectiveAllocationsMadeCount": 0,
"EffectiveAllocationsMadeSize": 0,
"TailCalls": 0,
"TotalTime": 1062208008,
"TimeUnder": 0,
"AllocatedCount": 0,
"CallsToCount": 0,
"CalledFromCount": 1
}
]
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment