RFR: 8315149: Add hsperf counters for CPU time of internal GC threads [v47]

Stefan Johansson sjohanss at openjdk.org
Fri Dec 1 10:05:25 UTC 2023


On Thu, 30 Nov 2023 01:43:28 GMT, Jonathan Joo <jjoo at openjdk.org> wrote:

>> (I just realized that I made a typo in my previous msg; should be *callee* instead.) That is what I have in mind.
>> 
>> 
>> void CPUTimeCounters::update_counter(name, total) {
>>   auto counter = get_counter(name);
>>   auto old_v = counter->get_value();
>>   auto diff = total - old_v;
>>   counter->inc(diff);
>>   if (counter->is_gc_counter()) {
>>     counter->inc(diff);
>>   }
>> }
>
> I'm not sure I understood correctly, could you let me know if this latest commit addresses your comment in the way you were intending?

It does.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/15082#discussion_r1411876609


More information about the hotspot-gc-dev mailing list