You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "PakhomovAlexander (via GitHub)" <gi...@apache.org> on 2025/02/07 12:29:00 UTC
[PR] IGNITE-24435 Disable profiling by default for jmh task [ignite-3]
PakhomovAlexander opened a new pull request, #5192:
URL: https://github.com/apache/ignite-3/pull/5192
* `./gradlew jmh` now is running without profiling
* `./gradlew jmh` now is not cached and reruns everytime
* `-PjmhProfileAsync` and `-PjmhProfileJfr` are added
https://issues.apache.org/jira/browse/IGNITE-24435
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-24435 Disable profiling by default for jmh task [ignite-3]
Posted by "PakhomovAlexander (via GitHub)" <gi...@apache.org>.
PakhomovAlexander commented on code in PR #5192:
URL: https://github.com/apache/ignite-3/pull/5192#discussion_r1948564403
##########
DEVNOTES.md:
##########
@@ -170,6 +167,28 @@ Here is how configurations override each other:
Meaning 1 is overridden by 2, 2 is overridden by 3.
+### How to profile your benchmark
+
+By default, there is no profiling enabled. If you want to profile your benchmark, you can set one of the following properties in CLI:
+- `-PjmhProfileJfr`
+- `-PjmhProfileAsync`
+
+The example of running the benchmark with JFR profiling:
+```shell
+./gradlew :ignite-transactions:jmh -PjmhProfileJfr
+```
+
+Output directory for the profiler results is `build/profiler`.
+
+If you want to use another profiler, you can add it to `jmh` configuration in the `build.gradle` file:
Review Comment:
I can mention this explicitly in `DEVNOTES.md` or try to find/write a workaround if it is important.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-24435 Disable profiling by default for jmh task [ignite-3]
Posted by "PakhomovAlexander (via GitHub)" <gi...@apache.org>.
PakhomovAlexander merged PR #5192:
URL: https://github.com/apache/ignite-3/pull/5192
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-24435 Disable profiling by default for jmh task [ignite-3]
Posted by "ascherbakoff (via GitHub)" <gi...@apache.org>.
ascherbakoff commented on code in PR #5192:
URL: https://github.com/apache/ignite-3/pull/5192#discussion_r1946508001
##########
DEVNOTES.md:
##########
@@ -170,6 +167,28 @@ Here is how configurations override each other:
Meaning 1 is overridden by 2, 2 is overridden by 3.
+### How to profile your benchmark
+
+By default, there is no profiling enabled. If you want to profile your benchmark, you can set one of the following properties in CLI:
+- `-PjmhProfileJfr`
+- `-PjmhProfileAsync`
+
+The example of running the benchmark with JFR profiling:
+```shell
+./gradlew :ignite-transactions:jmh -PjmhProfileJfr
+```
+
+Output directory for the profiler results is `build/profiler`.
+
+If you want to use another profiler, you can add it to `jmh` configuration in the `build.gradle` file:
Review Comment:
How to enable a custom profiler via command line ?
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-24435 Disable profiling by default for jmh task [ignite-3]
Posted by "PakhomovAlexander (via GitHub)" <gi...@apache.org>.
PakhomovAlexander commented on code in PR #5192:
URL: https://github.com/apache/ignite-3/pull/5192#discussion_r1946559143
##########
DEVNOTES.md:
##########
@@ -170,6 +167,28 @@ Here is how configurations override each other:
Meaning 1 is overridden by 2, 2 is overridden by 3.
+### How to profile your benchmark
+
+By default, there is no profiling enabled. If you want to profile your benchmark, you can set one of the following properties in CLI:
+- `-PjmhProfileJfr`
+- `-PjmhProfileAsync`
+
+The example of running the benchmark with JFR profiling:
+```shell
+./gradlew :ignite-transactions:jmh -PjmhProfileJfr
+```
+
+Output directory for the profiler results is `build/profiler`.
+
+If you want to use another profiler, you can add it to `jmh` configuration in the `build.gradle` file:
Review Comment:
There is no way to do in via CMD if you use this gradle plugin
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org