On Thu, 30 Nov 2023 01:43:28 GMT, Jonathan Joo <j...@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