Can I get time spent by GC in a given block?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can I get time spent by GC in a given block?

GLASS mailing list
Or even more ... I would love if I can know the GC time spent on a given closure AND show me the list of classes whose instances took most of the collection?


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: Can I get time spent by GC in a given block?

GLASS mailing list
Mariano,

In 3.3, you can get profile the following attributes (`man pf start` in tODE or use ProfMonitor):

    edenUsage    - eden byts used
    execTime      - execution time (cpu or real)
    gcTime          - temp obj memory gc time  (cpu or real)
    objFaults        - object faults
    objCreation    - new object creation
    pageFaults     - page faults

You can only use one option at a time, but I think this gets you pretty close in terms of gc time  ... I don't know if it is possible to determine gc time based on instances in a block, but you can get profile of instance counts of classes in temp obj space:

  System class>>_vmInstanceCountsReport:
  System class>>_vmPrintInstanceCounts:

Dale 

On 02/26/2016 01:37 PM, Mariano Martinez Peck via Glass wrote:
Or even more ... I would love if I can know the GC time spent on a given closure AND show me the list of classes whose instances took most of the collection?



_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass