代码之家  ›  专栏  ›  技术社区  ›  alamar

如何根据单核细胞增多症患者体内的时间建立方法的病历图?

  •  1
  • alamar  · 技术社区  · 7 年前

    我尝试了以下方法:

    mono --profile=log myprog.exe
    

    > mprof-report output.mlpd 
    
    Mono log profiler data
            Profiler version: 2.0
            Data version: 14
            Arguments: log
            Architecture: x86-64
            Operating system: linux
            Mean timer overhead: 51 nanoseconds
            Program startup: Fri Jul 20 00:11:12 2018
            Program ID: 19840
            Server listening on: 59374
    
    JIT summary
            Compiled methods: 8349
            Generated code size: 2621631
            JIT helpers: 0
            JIT helpers code size: 0
    
    GC summary
            GC resizes: 0
            Max heap size: 0
            Object moves: 0
    
    Metadata summary
            Loaded images: 16
            Loaded assemblies: 16
    
    Exception summary
            Throws: 0
    
    Thread summary
            Thread: 0x7fb49c50a700, name: ""
            Thread: 0x7fb49d27b700, name: "Threadpool worker"
            Thread: 0x7fb49d07a700, name: "Threadpool worker"
            Thread: 0x7fb49ce79700, name: "Threadpool worker"
            Thread: 0x7fb49cc78700, name: "Threadpool worker"
            Thread: 0x7fb49d6b9700, name: ""
            Thread: 0x7fb4bbff1700, name: "Finalizer"
            Thread: 0x7fb4bfe3f740, name: "Main"
    
    Domain summary
            Domain: (nil), friendly name: "myprog.exe"
            Domain: 0x1d037f0, friendly name: "(null)"
    
    Context summary
            Context: (nil), domain: (nil)
    

    hprof cpu=times

    1 回复  |  直到 7 年前
        1
  •  2
  •   SushiHangover    7 年前

    calls alloc

    calldepth

    mono --profile=log:calls,calldepth=10 Console_Ling.exe
    

    Method call summary
    Total(ms) Self(ms)      Calls Method name
       53358        0          1 (wrapper runtime-invoke) <Module>:runtime_invoke_void_object (object,intptr,intptr,intptr)
       53358        2          1 Console_Ling.MainClass:Main (string[])
       53340        2          1 Console_Ling.MainClass:Stuff ()
       53337        0          3 System.Linq.Enumerable:ToList<int> (System.Collections.Generic.IEnumerable`1<int>)
       53194    13347          1 System.Linq.Enumerable/WhereListIterator`1<int>:ToList ()
       33110    13181   20000000 Console_Ling.MainClass/<>c__DisplayClass0_0:<Stuff>b__0 (int)
       19928    13243   20000000 System.Collections.Generic.List`1<int>:Contains (int)
        6685     6685   20000000 System.Collections.Generic.GenericEqualityComparer`1<int>:Equals (int,int)
        ~~~~
    

    http://www.mono-project.com/docs/debug+profile/profile/profiler/#profiler-option-documentation