mutter/src/x11
Ivan Molodetskikh 2d1fc65b3a Adjust COGL_TRACE names to improve automatic processing
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>
2023-11-22 11:46:07 +00:00
..
atomnames.h x11: Simplify handling of focus-follows-mouse 2023-09-28 15:39:44 +00:00
events.c Adjust COGL_TRACE names to improve automatic processing 2023-11-22 11:46:07 +00:00
events.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
group-private.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
group-props.c Remove misplaced line break in g_* logging functions 2020-10-08 16:38:41 +02:00
group-props.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
group.c mutter: Remove stray spaces 2023-05-24 14:16:41 +02:00
iconcache.c iconcache: Avoid xrender picture formats when creating cairo surface 2019-08-27 18:47:41 +03:00
iconcache.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-selection-source-x11-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-source-x11.c Update license access method 2023-08-30 08:48:23 +02:00
meta-startup-notification-x11.c cleanup: Stop translating nick/blurb for pspecs 2023-07-19 11:33:59 +00:00
meta-startup-notification-x11.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-sync-counter.c Adjust COGL_TRACE names to improve automatic processing 2023-11-22 11:46:07 +00:00
meta-sync-counter.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-x11-display-private.h x11: Add another mechanism to ignore crossing events 2023-09-28 15:39:44 +00:00
meta-x11-display.c x11: Add another mechanism to ignore crossing events 2023-09-28 15:39:44 +00:00
meta-x11-errors.c x11: Replace Mutter X11 errors with Mtk ones 2023-09-02 09:52:54 +00:00
meta-x11-event-source.c Update license access method 2023-08-30 08:48:23 +02:00
meta-x11-event-source.h Update license access method 2023-08-30 08:48:23 +02:00
meta-x11-selection-input-stream-private.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-x11-selection-input-stream.c x11: Remove unused member variables from MetaX11SelectionInputStream 2023-04-14 13:27:19 +00:00
meta-x11-selection-output-stream-private.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-x11-selection-output-stream.c x11: Use Atoms when constructing a new MetaX11SelectionOutputStream 2023-04-14 13:27:19 +00:00
meta-x11-selection-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-x11-selection.c Update license access method 2023-08-30 08:48:23 +02:00
meta-x11-stack-private.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-x11-stack.c cleanup: Stop translating nick/blurb for pspecs 2023-07-19 11:33:59 +00:00
mutter-Xatomtype.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
session.c cleanup: Fix various typos 2023-08-12 20:13:37 +00:00
session.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
window-props.c Port to MtkRegion 2023-11-03 11:27:52 +00:00
window-props.h cleanup: Fix various typos 2023-08-12 20:13:37 +00:00
window-x11-private.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
window-x11.c Port to MtkRegion 2023-11-03 11:27:52 +00:00
window-x11.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
xprops.c x11: Drop unused function 2022-12-09 16:28:33 +00:00
xprops.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00