Skip to content
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

Convert frame name format to 'function (DSO)' for LIB style. #2

Conversation

marcin-ol
Copy link

@marcin-ol marcin-ol commented Sep 26, 2022

Change formatting of DSO names when LIB reporting is enabled. Results in stack traces resembling the following:

'java;HelloWorld.main([Ljava/lang/String;)V_[j];java/io/File.list()[Ljava/lang/String|_[j];java/io/UnixFileSystem.list(Ljava/io/File|)[Ljava/lang/String|_[j];Java_java_io_UnixFileSystem_list (/opt/java/libjava.so);JNU_NewStringPlatform (/opt/java/libjava.so);jni_NewObject (/opt/java/libjvm.so)': 30,
'java;HelloWorld.main([Ljava/lang/String;)V_[j];java/io/File.list()[Ljava/lang/String|_[j];java/io/UnixFileSystem.list(Ljava/io/File|)[Ljava/lang/String|_[j];[unknown];/lib/x86_64-linux-gnu/libc-2.28.so': 29,

marcin-ol added a commit to marcin-ol/async-profiler that referenced this pull request Oct 4, 2022
- apply common frame format 'function (DSO)',
- return to reporting DSO absolute path
Copy link

@Jongy Jongy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, I'll see how it looks in the gProfiler side before we merge it.

src/frameName.cpp Outdated Show resolved Hide resolved
src/stringUtils.cpp Outdated Show resolved Hide resolved
src/frameName.cpp Outdated Show resolved Hide resolved
src/frameName.cpp Outdated Show resolved Hide resolved
src/frameName.cpp Outdated Show resolved Hide resolved
src/frameName.cpp Outdated Show resolved Hide resolved
Copy link

@Jongy Jongy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I gave 2 last comments that we can decide we don't do, but please take a look at them

@marcin-ol marcin-ol changed the title Convert frame name format to function[DSO] for LIB style. Convert frame name format to 'function (DSO)' for LIB style. Oct 24, 2022
src/codeCache.cpp Outdated Show resolved Hide resolved
src/codeCache.cpp Outdated Show resolved Hide resolved
src/codeCache.cpp Outdated Show resolved Hide resolved
Copy link

@Jongy Jongy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finished reviewing again - see my bigcomment, maybe we should revert it and instead implement in gprofiler

@marcin-ol marcin-ol force-pushed the apply-common-format-for-DSO-names branch from a3b4174 to 42d967c Compare October 26, 2022 10:48
@Jongy
Copy link

Jongy commented Oct 26, 2022

I did some testing. Looks good, and the changes are minimal. Some we could maybe move to the main gProfiler repo, but that's good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants