Frequently Asked Questions - quick-perf/doc GitHub Wiki
On this page, we gather frequently asked questions.
If you don't find the answer to your question, please explore the documentation for a few minutes. You still don't get your answer? Don't hesitate to create a question issue or leave a message on the chat.
Explanations here.
Check that the test is a QuickPerf test.
Check that the class implementing SpecifiableGlobalAnnotations
uses the org.quickperf
package.
💡 What is a global annotation?
The fastest way to answer this question with QuickPerf is to use ProfileJvm annotation. This annotation displays the GC time on the console:
GARBAGE COLLECTION
Total pause : 1,264 s
This information can help choose a heap size, for example, with HeapSize annotation, to limit GC duration and test length.
👉 Maven
The error message contains Failure to find org.openjdk.jmc:flightrecorder.rules.jdk:pom:7.0.0 in
.
Add the https://adoptopenjdk.jfrog.io/adoptopenjdk/jmc-libs
repository to the POM file:
<repositories>
<repository>
<id>AdoptOpenJDK</id>
<name>AdoptOpenJDK</name>
<url>https://adoptopenjdk.jfrog.io/adoptopenjdk/jmc-libs</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
👉 Gradle
Add the https://adoptopenjdk.jfrog.io/adoptopenjdk/jmc-libs
repository to the build.gradle
file:
repositories {
mavenCentral()
maven { url 'https://adoptopenjdk.jfrog.io/adoptopenjdk/jmc-libs' }
}
Explanations here