mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 21:02:14 +00:00
2d1fc65b3a
In profilers with a timeline or flame graph views it is a very common scenario that a span name must be displayed in an area too short to fit it. In this case, profilers may implement automatic shortening to show the most important part of the span name in the available area. This makes it easier to tell what's going on without having to zoom all the way in. The current trace span names in Mutter don't really follow any system and cannot really be shortened automatically. The Tracy profiler shortens with C++ in mind. Consider an example C++ name: SomeNamespace::SomeClass::some_method(args) The method name is the most important part, and the arguments with the class name will be cut if necessary in the order of importance. This logic makes sence for other languages too, like Rust. I can see it being implemented in other profilers like Sysprof, since it's generally useful. Hence, this commit adjusts our trace names to look like C++ and arrange the parts of the name in the respective order of importance. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3402> |
||
---|---|---|
.. | ||
cogl | ||
cogl-pango | ||
meson.build |