Skip to content

Instantly share code, notes, and snippets.

@gregoryyoung
Created December 26, 2015 18:32
Show Gist options
  • Save gregoryyoung/454ef77abef7a0ccd1e2 to your computer and use it in GitHub Desktop.
Save gregoryyoung/454ef77abef7a0ccd1e2 to your computer and use it in GitHub Desktop.
> open PrivateEye.Bridge;;
> Profiler.StartListening();;
Starting TCP listening on TCP endpoint: 127.0.0.1:4444.
Segments count: 1, buffers count: 16, should be when full: 16
val it : unit = ()
> addFsiPrinters();;
val it : unit = ()
> TCP connection accepted
Received identification Process Id 9060, Mono PrivateEye v0.3.4
- mostAllocatingMethods();;
val it : seq<profilersession.MethodInformation> =
---------------------------------------------------------------------------------------------------------
|Name | Called| Total Time| Allocs| A. Size| AAlloc| AA. Size|Thrown|
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
> enableAllocationTracking();;
val it : unit = ()
> mostAllocatingMethods() |> Seq.take 5;;
val it : seq<profilersession.MethodInformation> =
---------------------------------------------------------------------------------------------------------
|Name | Called| Total Time| Allocs| A. Size| AAlloc| AA. Size|Thrown|
---------------------------------------------------------------------------------------------------------
|IOBinaryReader,byte,long) | 0| 0| 632778| 71.24MB| 0| 0 bytes| 0|
|Publish (EventStore.Core.Messagin| 0| 0| 659680| 59.39MB| 0| 0 bytes| 0|
|Commit (System.Collections.Generi| 0| 0| 633232| 41.07MB| 0| 0 bytes| 0|
|ReadFrom (System.IO.BinaryReader)| 0| 0| 105540| 12.88MB| 0| 0 bytes| 0|
|Init (long) | 0| 0| 105550| 4.03MB| 0| 0 bytes| 0|
---------------------------------------------------------------------------------------------------------
> mostActualAllocatingMethods() |> Seq.take 5;;
val it : seq<profilersession.MethodInformation> =
---------------------------------------------------------------------------------------------------------
|Name | Called| Total Time| Allocs| A. Size| AAlloc| AA. Size|Thrown|
---------------------------------------------------------------------------------------------------------
|__icall_wrapper_mono_object_new_s| 0| 0| 0| 0 bytes| 2757404| 198.54MB| 0|
|__icall_wrapper_mono_array_new_sp| 0| 0| 0| 0 bytes| 1526139| 167.24MB| 0|
|InternalAllocateStr (int) | 0| 0| 0| 0 bytes| 419940| 32.21MB| 0|
|pool_queue (System.Runtime.Remoti| 0| 0| 0| 0 bytes| 13100| 4.00MB| 0|
|get_parameter_info (intptr,System| 0| 0| 0| 0 bytes| 96| 3.00KB| 0|
--------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment