mutter/src/core
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
..
bell.c mutter: Remove stray spaces 2023-05-24 14:16:41 +02:00
bell.h frame: Remove flashing support 2019-03-12 00:27:07 +00:00
boxes-private.h mtk: Move Rectangle.from_graphene_rect from Meta 2023-08-30 16:46:14 +02:00
boxes.c mtk: Move Rectangle.from_graphene_rect from Meta 2023-08-30 16:46:14 +02:00
constraints.c cleanup: Remove unneeded ifdef 2023-11-03 11:36:07 +00:00
constraints.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
delete.c delete: Don't wrongly set window as not alive when pings are disabled 2023-11-08 09:02:32 +00:00
display-private.h core: Move window enter/leave to display 2023-11-13 14:22:44 +00:00
display.c Adjust COGL_TRACE names to improve automatic processing 2023-11-22 11:46:07 +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
frame.c Port to MtkRegion 2023-11-03 11:27:52 +00:00
frame.h Port to MtkRegion 2023-11-03 11:27:52 +00:00
keybindings-private.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
keybindings.c core: Ignore locked modifiers in keycombo machinery 2023-11-08 08:07:41 +00:00
meta-accel-parse.c Update license access method 2023-08-30 08:48:23 +02:00
meta-accel-parse.h Update license access method 2023-08-30 08:48:23 +02:00
meta-anonymous-file.c Update license access method 2023-08-30 08:48:23 +02:00
meta-anonymous-file.h Update license access method 2023-08-30 08:48:23 +02:00
meta-border.c Update license access method 2023-08-30 08:48:23 +02:00
meta-border.h Update license access method 2023-08-30 08:48:23 +02:00
meta-clipboard-manager.c Update license access method 2023-08-30 08:48:23 +02:00
meta-clipboard-manager.h Update license access method 2023-08-30 08:48:23 +02:00
meta-close-dialog.c cleanup: Stop translating nick/blurb for pspecs 2023-07-19 11:33:59 +00:00
meta-context-main.c Update license access method 2023-08-30 08:48:23 +02:00
meta-context-main.h Update license access method 2023-08-30 08:48:23 +02:00
meta-context-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-context.c Update license access method 2023-08-30 08:48:23 +02:00
meta-fraction.c Update license access method 2023-08-30 08:48:23 +02:00
meta-fraction.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-gesture-tracker-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-gesture-tracker.c Update license access method 2023-08-30 08:48:23 +02:00
meta-inhibit-shortcuts-dialog-default-private.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-inhibit-shortcuts-dialog-default.c Use a consistent style for enum braces 2019-02-28 09:31:01 +01:00
meta-inhibit-shortcuts-dialog.c cleanup: Stop translating nick/blurb for pspecs 2023-07-19 11:33:59 +00:00
meta-launch-context.c Update license access method 2023-08-30 08:48:23 +02:00
meta-pad-action-mapper.c core: Query pad devices on MetaPadActionMapper initialization 2023-11-10 21:05:44 +00:00
meta-pad-action-mapper.h Update license access method 2023-08-30 08:48:23 +02:00
meta-private-enums.h Update license access method 2023-08-30 08:48:23 +02:00
meta-profiler.c Update license access method 2023-08-30 08:48:23 +02:00
meta-profiler.h Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-source-memory.c Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-source-remote.c Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-source-remote.h Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-source.c Update license access method 2023-08-30 08:48:23 +02:00
meta-selection.c Update license access method 2023-08-30 08:48:23 +02:00
meta-service-channel.c Update license access method 2023-08-30 08:48:23 +02:00
meta-service-channel.h Update license access method 2023-08-30 08:48:23 +02:00
meta-sound-player.c Update license access method 2023-08-30 08:48:23 +02:00
meta-workspace-manager-private.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-workspace-manager.c cleanup: Drop empty vfuncs overrides 2023-08-29 23:38:32 +00:00
mutter.c mutter: Raise the NOFILE limit if a Wayland compositor 2022-02-07 16:11:47 +01:00
place.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
place.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
prefs-private.h Update license access method 2023-08-30 08:48:23 +02:00
prefs.c tests/stacking: Add pointer rest and auto raise tests 2023-11-13 14:22:44 +00:00
restart-helper.c mutter: Remove stray spaces 2023-05-24 14:16:41 +02:00
restart.c mutter: Remove stray spaces 2023-05-24 14:16:41 +02:00
stack-tracker.c Adjust COGL_TRACE names to improve automatic processing 2023-11-22 11:46:07 +00:00
stack-tracker.h core: Subscribe to stack changes in the stack-tracker 2023-09-03 23:31:37 +02:00
stack.c Adjust COGL_TRACE names to improve automatic processing 2023-11-22 11:46:07 +00:00
stack.h Remove unused meta_stack_get_bottom 2023-08-12 19:53:46 +00:00
startup-notification-private.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
startup-notification.c cleanup: Drop empty vfuncs overrides 2023-08-29 23:38:32 +00:00
util-private.h Update license access method 2023-08-30 08:48:23 +02:00
util.c backends/eis: Hook eis into the debug system 2023-07-14 22:23:45 +00:00
window-private.h core: Move window enter/leave to display 2023-11-13 14:22:44 +00:00
window.c Adjust COGL_TRACE names to improve automatic processing 2023-11-22 11:46:07 +00:00
workspace-private.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
workspace.c Adjust COGL_TRACE names to improve automatic processing 2023-11-22 11:46:07 +00:00