New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for running YourKit on Windows #409
Conversation
Signed-off-by: Sam Snyder <sam@moderne.io>
@@ -35,6 +37,12 @@ public static File findControllerJar() { | |||
|
|||
public static File findJniLib() { | |||
File yourKitHome = findYourKitHome(); | |||
if(OperatingSystem.isWindows()) { | |||
if("32".equals(System.getProperty("sun.arch.data.model"))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use "os.arch" instead of "sun.arch.data.model"? "sun.arch.data.model" seems to be tied to sun so I am not sure if all JVMs report that property.
I think having a method like OperatingSystem.isLinuxX86()
but for windows would make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, I don't think we need to support 32bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sambsnyd Or you maybe need support for 32bit?
Verified on Windows 64bit. |
Thank you for your contribution! I merged it, if you need any change, let me know. |
No description provided.