iprithv commented on code in PR #15983:
URL: https://github.com/apache/lucene/pull/15983#discussion_r3152091189
##########
build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/java/ProfileResults.java:
##########
@@ -121,6 +128,37 @@ static boolean isGradlePollThread(RecordedThread thread) {
return (thread != null && thread.getJavaName().startsWith("/127.0.0.1"));
}
+ /**
+ * Pre-scan recording files for CPU sampling strategy. Returns whether any
{@code
+ * jdk.CPUTimeSample} events appear in the inputs. Throws if recordings mix
those with legacy
+ * wall-clock samples ({@code jdk.ExecutionSample} / {@code
jdk.NativeMethodSample}); only one
+ * CPU sampler should be enabled in JFR settings.
+ */
+ static boolean resolveCpuTimeSampling(List<String> files) throws IOException
{
Review Comment:
sure, done. thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]