We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a4f329 commit 4d3c8bbCopy full SHA for 4d3c8bb
src/profiler.cpp
@@ -1200,6 +1200,14 @@ Error Profiler::start(Arguments& args, bool reset) {
1200
return Error("mixed feature is only allowed with VMStructs stack walking");
1201
}
1202
1203
+ if (args._jfr_sync && args._output != OUTPUT_JFR) {
1204
+ return Error("jfrsync is only supported with jfr output");
1205
+ }
1206
+
1207
+ if (args._jfr_sync && !VM::loaded()) {
1208
+ return Error("jfrsync is not supported with non-Java processes");
1209
1210
1211
// Kernel symbols are useful only for perf_events without --all-user
1212
updateSymbols(_engine == &perf_events && !args._alluser);
1213
0 commit comments