File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,10 @@ boolean supportsProfiling(Application application) {
56
56
Jvm jvm = JvmFactory .getJVMFor (application );
57
57
if (!jvm .isBasicInfoSupported () || !jvm .isAttachable ()) return false ;
58
58
ApplicationType appType = ApplicationTypeFactory .getApplicationTypeFor (application );
59
- return appType .getClass ().getName ().contains ("GraalVMApplicationType" );
59
+ if (appType .getClass ().getName ().contains ("GraalVMApplicationType" )) { // NOI18N
60
+ return true ;
61
+ }
62
+ return isRunningOnGraalVM (jvm );
60
63
}
61
64
62
65
void selectSamplerView (Application application ) {
@@ -71,4 +74,7 @@ private SamplerSupport() {
71
74
samplerViewProvider .initialize ();
72
75
}
73
76
77
+ private boolean isRunningOnGraalVM (Jvm jvm ) {
78
+ return (jvm .getVmName ().contains ("GraalVM" )); // NOI18N
79
+ }
74
80
}
You can’t perform that action at this time.
0 commit comments