-
Notifications
You must be signed in to change notification settings - Fork 264
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
In pprofextended proto, consider moving Location.type_index to Mapping #561
Comments
Perhaps one case of having different type of locations per mapping could be if they are language related. E.g. C++ and Rust linked into the same static binary. |
@open-telemetry/profiling-maintainers |
Another use case is mixed stacktraces, example: Stacktrace with both native and interpreted (Python) frames. Using a frame type per If we lift |
I would probably expect two different "fake" mappings to be used in this case - one for interpreted locations, another for JIT locations. Having separate mappings would allow them to have different names (in the Mapping.filename field) which is useful from the tooling / analysis perspective: tools rendering profiles often expose mapping name in a tooltip on the flame graph and easily seeing from the mapping name whether the location is interpreted or JIT is convenient. |
With #578 (which is about to be merged) this is moot / not relevant, so closing. |
We define it as
I can't easily think of a case where the type of locations would be different for the given mapping. This could probably be moved to the mapping message which would also save some profile size since locations tend to come in much larger quantities compared to mappings.
Related: Could this type be an attribute? Both mapping and location have attributes attached.
The text was updated successfully, but these errors were encountered: