Conversation
| if (nanos == -1) { | ||
| return -1; | ||
| } | ||
| return Management::ticks_to_ms(ticks); |
There was a problem hiding this comment.
Note: ticks equal to nanos on Linux, but Windows could use different granularity.
|
👋 Welcome back rvansa! A progress list of the required criteria for merging this PR into |
|
@rvansa This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
| scores.append({"vm.uptimeSinceRestore", static_cast<double>(_generation > 1 ? crac::uptime_since_restore() / NANOSECS_PER_MILLISEC : -1)}); | ||
|
|
||
| scores.append({"vm.crac.generation", static_cast<double>(_generation)}); | ||
| scores.append({"vm.restore.nativeTime", static_cast<double>(_generation > 1 ? (_restore_native_end_nanos - _restore_start_nanos) / NANOSECS_PER_MILLISEC : -1)}); |
There was a problem hiding this comment.
Are the -1 fallbacks (and initializing _restore_native_end_nanos = -1 at the top of the file) really needed when we guard the reads with _generation > 1?
There was a problem hiding this comment.
The initialization isn't necessary, this is the only read. But about the fallback - do you suggest to include the metric only if _generation > 1? I have followed the same pattern as with vm.uptimeSinceRestore above, rather than omitting this entirely.
Btw., with keep-running this value is set even if this is a booted (not restored) instance. In that case it's a bit confusing (has some low value) but I don't think it's critical.
We are reporting metrics that describe JVM+application state & performance, the warmed-up-ness. The concept of metrics can be useful for engine extensions and management at different moments, though - therefore we can report restore times (native & Java) and current generation as metrics, and configure image constraints sooner than when we are attempting a restore.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/crac.git pull/349/head:pull/349$ git checkout pull/349Update a local copy of the PR:
$ git checkout pull/349$ git pull https://git.openjdk.org/crac.git pull/349/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 349View PR using the GUI difftool:
$ git pr show -t 349Using diff file
Download this PR as a diff file:
https://git.openjdk.org/crac/pull/349.diff
Using Webrev
Link to Webrev Comment