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>
This commit is contained in:
parent
f96d6b0afe
commit
2d1fc65b3a
@ -3571,7 +3571,7 @@ clutter_actor_paint (ClutterActor *self,
|
|||||||
if (G_UNLIKELY (clutter_debug_flags & CLUTTER_DEBUG_DETAILED_TRACE))
|
if (G_UNLIKELY (clutter_debug_flags & CLUTTER_DEBUG_DETAILED_TRACE))
|
||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_ANCHORED (ClutterActorPaint,
|
COGL_TRACE_BEGIN_ANCHORED (ClutterActorPaint,
|
||||||
"ClutterActor (paint)");
|
"Clutter::Actor::paint()");
|
||||||
COGL_TRACE_DESCRIBE (ClutterActorPaint,
|
COGL_TRACE_DESCRIBE (ClutterActorPaint,
|
||||||
_clutter_actor_get_debug_name (self));
|
_clutter_actor_get_debug_name (self));
|
||||||
}
|
}
|
||||||
@ -8734,7 +8734,7 @@ clutter_actor_allocate (ClutterActor *self,
|
|||||||
if (G_UNLIKELY (clutter_debug_flags & CLUTTER_DEBUG_DETAILED_TRACE))
|
if (G_UNLIKELY (clutter_debug_flags & CLUTTER_DEBUG_DETAILED_TRACE))
|
||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_ANCHORED (ClutterActorAllocate,
|
COGL_TRACE_BEGIN_ANCHORED (ClutterActorAllocate,
|
||||||
"ClutterActor (allocate)");
|
"Clutter::Actor::allocate()");
|
||||||
COGL_TRACE_DESCRIBE (ClutterActorAllocate,
|
COGL_TRACE_DESCRIBE (ClutterActorAllocate,
|
||||||
_clutter_actor_get_debug_name (self));
|
_clutter_actor_get_debug_name (self));
|
||||||
}
|
}
|
||||||
|
@ -250,7 +250,7 @@ clutter_frame_clock_notify_presented (ClutterFrameClock *frame_clock,
|
|||||||
ClutterFrameInfo *frame_info)
|
ClutterFrameInfo *frame_info)
|
||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockNotifyPresented,
|
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockNotifyPresented,
|
||||||
"Frame Clock (presented)");
|
"Clutter::FrameClock::presented()");
|
||||||
|
|
||||||
if (G_UNLIKELY (CLUTTER_HAS_DEBUG (FRAME_CLOCK)))
|
if (G_UNLIKELY (CLUTTER_HAS_DEBUG (FRAME_CLOCK)))
|
||||||
{
|
{
|
||||||
@ -389,7 +389,7 @@ clutter_frame_clock_notify_presented (ClutterFrameClock *frame_clock,
|
|||||||
void
|
void
|
||||||
clutter_frame_clock_notify_ready (ClutterFrameClock *frame_clock)
|
clutter_frame_clock_notify_ready (ClutterFrameClock *frame_clock)
|
||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockNotifyReady, "Frame Clock (ready)");
|
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockNotifyReady, "Clutter::FrameClock::ready()");
|
||||||
|
|
||||||
switch (frame_clock->state)
|
switch (frame_clock->state)
|
||||||
{
|
{
|
||||||
@ -714,7 +714,7 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock,
|
|||||||
int64_t this_dispatch_ready_time_us;
|
int64_t this_dispatch_ready_time_us;
|
||||||
int64_t this_dispatch_time_us;
|
int64_t this_dispatch_time_us;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockDispatch, "Frame Clock (dispatch)");
|
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockDispatch, "Clutter::FrameClock::dispatch()");
|
||||||
|
|
||||||
this_dispatch_ready_time_us = g_source_get_ready_time (frame_clock->source);
|
this_dispatch_ready_time_us = g_source_get_ready_time (frame_clock->source);
|
||||||
this_dispatch_time_us = time_us;
|
this_dispatch_time_us = time_us;
|
||||||
@ -766,18 +766,18 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock,
|
|||||||
frame->target_presentation_time_us = frame_clock->next_presentation_time_us;
|
frame->target_presentation_time_us = frame_clock->next_presentation_time_us;
|
||||||
frame->min_render_time_allowed_us = frame_clock->min_render_time_allowed_us;
|
frame->min_render_time_allowed_us = frame_clock->min_render_time_allowed_us;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockEvents, "Frame Clock (before frame)");
|
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockEvents, "Clutter::FrameListener::before_frame()");
|
||||||
if (iface->before_frame)
|
if (iface->before_frame)
|
||||||
iface->before_frame (frame_clock, frame, frame_clock->listener.user_data);
|
iface->before_frame (frame_clock, frame, frame_clock->listener.user_data);
|
||||||
COGL_TRACE_END (ClutterFrameClockEvents);
|
COGL_TRACE_END (ClutterFrameClockEvents);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockTimelines, "Frame Clock (timelines)");
|
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockTimelines, "Clutter::FrameClock::advance_timelines()");
|
||||||
if (frame_clock->is_next_presentation_time_valid)
|
if (frame_clock->is_next_presentation_time_valid)
|
||||||
time_us = frame_clock->next_presentation_time_us;
|
time_us = frame_clock->next_presentation_time_us;
|
||||||
advance_timelines (frame_clock, time_us);
|
advance_timelines (frame_clock, time_us);
|
||||||
COGL_TRACE_END (ClutterFrameClockTimelines);
|
COGL_TRACE_END (ClutterFrameClockTimelines);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockFrame, "Frame Clock (frame)");
|
COGL_TRACE_BEGIN_SCOPED (ClutterFrameClockFrame, "Clutter::FrameListener::frame()");
|
||||||
result = iface->frame (frame_clock, frame, frame_clock->listener.user_data);
|
result = iface->frame (frame_clock, frame, frame_clock->listener.user_data);
|
||||||
COGL_TRACE_END (ClutterFrameClockFrame);
|
COGL_TRACE_END (ClutterFrameClockFrame);
|
||||||
|
|
||||||
|
@ -480,7 +480,7 @@ clutter_stage_paint_view (ClutterStage *stage,
|
|||||||
if (!priv->impl)
|
if (!priv->impl)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterStagePaintView, "Paint (view)");
|
COGL_TRACE_BEGIN_SCOPED (ClutterStagePaintView, "Clutter::Stage::paint_view()");
|
||||||
|
|
||||||
if (g_signal_has_handler_pending (stage, stage_signals[PAINT_VIEW],
|
if (g_signal_has_handler_pending (stage, stage_signals[PAINT_VIEW],
|
||||||
0, TRUE))
|
0, TRUE))
|
||||||
@ -866,7 +866,7 @@ clutter_stage_maybe_relayout (ClutterActor *actor)
|
|||||||
if (priv->pending_relayouts == NULL)
|
if (priv->pending_relayouts == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterStageRelayout, "Layout");
|
COGL_TRACE_BEGIN_SCOPED (ClutterStageRelayout, "Clutter::Stage::maybe_relayout()");
|
||||||
|
|
||||||
CLUTTER_NOTE (ACTOR, ">>> Recomputing layout");
|
CLUTTER_NOTE (ACTOR, ">>> Recomputing layout");
|
||||||
|
|
||||||
@ -940,7 +940,7 @@ clutter_stage_finish_layout (ClutterStage *stage)
|
|||||||
int phase;
|
int phase;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterStageUpdateActorStageViews,
|
COGL_TRACE_BEGIN_SCOPED (ClutterStageUpdateActorStageViews,
|
||||||
"Actor stage-views");
|
"Clutter::Stage::finish_layout()");
|
||||||
|
|
||||||
/* If an actor needs an immediate relayout because its resource scale
|
/* If an actor needs an immediate relayout because its resource scale
|
||||||
* changed, we give it another chance to allocate correctly before
|
* changed, we give it another chance to allocate correctly before
|
||||||
@ -973,7 +973,7 @@ clutter_stage_update_devices (ClutterStage *stage,
|
|||||||
ClutterStagePrivate *priv = stage->priv;
|
ClutterStagePrivate *priv = stage->priv;
|
||||||
GSList *l;
|
GSList *l;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterStageUpdateDevices, "UpdateDevices");
|
COGL_TRACE_BEGIN_SCOPED (ClutterStageUpdateDevices, "Clutter::Stage::update_devices()");
|
||||||
|
|
||||||
for (l = devices; l; l = l->next)
|
for (l = devices; l; l = l->next)
|
||||||
{
|
{
|
||||||
@ -1076,7 +1076,7 @@ _clutter_stage_do_pick_on_view (ClutterStage *stage,
|
|||||||
graphene_ray_t ray;
|
graphene_ray_t ray;
|
||||||
ClutterActor *actor;
|
ClutterActor *actor;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterStagePickView, "Pick (view)");
|
COGL_TRACE_BEGIN_SCOPED (ClutterStagePickView, "Clutter::Stage::do_pick_on_view()");
|
||||||
|
|
||||||
setup_ray_for_coordinates (stage, x, y, &p, &ray);
|
setup_ray_for_coordinates (stage, x, y, &p, &ray);
|
||||||
|
|
||||||
@ -1948,7 +1948,7 @@ clutter_stage_read_pixels (ClutterStage *stage,
|
|||||||
float pixel_height;
|
float pixel_height;
|
||||||
uint8_t *pixels;
|
uint8_t *pixels;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (ClutterStageReadPixels, "Read Pixels");
|
COGL_TRACE_BEGIN_SCOPED (ClutterStageReadPixels, "Clutter::Stage::read_pixels()");
|
||||||
|
|
||||||
g_return_val_if_fail (CLUTTER_IS_STAGE (stage), NULL);
|
g_return_val_if_fail (CLUTTER_IS_STAGE (stage), NULL);
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ cogl_onscreen_egl_swap_buffers_with_damage (CoglOnscreen *onscreen,
|
|||||||
CoglRendererEGL *egl_renderer = renderer->winsys;
|
CoglRendererEGL *egl_renderer = renderer->winsys;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (CoglOnscreenEGLSwapBuffersWithDamage,
|
COGL_TRACE_BEGIN_SCOPED (CoglOnscreenEGLSwapBuffersWithDamage,
|
||||||
"Onscreen (eglSwapBuffers)");
|
"Cogl::Onscreen::egl_swap_buffers_with_damage()");
|
||||||
|
|
||||||
/* The specification for EGL (at least in 1.4) says that the surface
|
/* The specification for EGL (at least in 1.4) says that the surface
|
||||||
needs to be bound to the current context for the swap to work
|
needs to be bound to the current context for the swap to work
|
||||||
|
@ -680,7 +680,7 @@ meta_stage_impl_redraw_view_primary (MetaStageImpl *stage_impl,
|
|||||||
g_clear_pointer (&fb_clip_region, mtk_region_unref);
|
g_clear_pointer (&fb_clip_region, mtk_region_unref);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaStageImplRedrawViewSwapFramebuffer,
|
COGL_TRACE_BEGIN_SCOPED (MetaStageImplRedrawViewSwapFramebuffer,
|
||||||
"Paint (swap framebuffer)");
|
"Meta::StageImpl::redraw_view_primary#swap_framebuffer()");
|
||||||
|
|
||||||
if (queued_redraw_clip)
|
if (queued_redraw_clip)
|
||||||
{
|
{
|
||||||
|
@ -964,7 +964,7 @@ meta_backend_native_pause (MetaBackendNative *native)
|
|||||||
MetaRenderer *renderer = meta_backend_get_renderer (backend);
|
MetaRenderer *renderer = meta_backend_get_renderer (backend);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaBackendNativePause,
|
COGL_TRACE_BEGIN_SCOPED (MetaBackendNativePause,
|
||||||
"Backend (pause)");
|
"Meta::BackendNative::pause()");
|
||||||
|
|
||||||
meta_seat_native_release_devices (seat);
|
meta_seat_native_release_devices (seat);
|
||||||
meta_renderer_pause (renderer);
|
meta_renderer_pause (renderer);
|
||||||
@ -989,7 +989,7 @@ void meta_backend_native_resume (MetaBackendNative *native)
|
|||||||
MetaInputSettings *input_settings;
|
MetaInputSettings *input_settings;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaBackendNativeResume,
|
COGL_TRACE_BEGIN_SCOPED (MetaBackendNativeResume,
|
||||||
"Backend (resume)");
|
"Meta::BackendNative::resume()");
|
||||||
|
|
||||||
meta_monitor_manager_native_resume (monitor_manager_native);
|
meta_monitor_manager_native_resume (monitor_manager_native);
|
||||||
meta_udev_resume (native->udev);
|
meta_udev_resume (native->udev);
|
||||||
|
@ -310,7 +310,7 @@ meta_cursor_renderer_native_update_cursor (MetaCursorRenderer *cursor_renderer,
|
|||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaCursorRendererNative,
|
COGL_TRACE_BEGIN_SCOPED (MetaCursorRendererNative,
|
||||||
"CursorRendererNative (update cursor)");
|
"Meta::CursorRendererNative::update_cursor()");
|
||||||
|
|
||||||
cursor_changed = priv->current_cursor != cursor_sprite;
|
cursor_changed = priv->current_cursor != cursor_sprite;
|
||||||
|
|
||||||
@ -1052,7 +1052,7 @@ realize_cursor_sprite_for_crtc (MetaCursorRenderer *renderer,
|
|||||||
meta_kms_device_get_path (kms_device));
|
meta_kms_device_get_path (kms_device));
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (CursorRendererNativeRealize,
|
COGL_TRACE_BEGIN_SCOPED (CursorRendererNativeRealize,
|
||||||
"Cursor Renderer Native (realize for crtc)");
|
"Meta::CursorRendererNative::realize_cursor_sprite_for_crtc()");
|
||||||
if (META_IS_CURSOR_SPRITE_XCURSOR (cursor_sprite))
|
if (META_IS_CURSOR_SPRITE_XCURSOR (cursor_sprite))
|
||||||
{
|
{
|
||||||
MetaCursorSpriteXcursor *sprite_xcursor =
|
MetaCursorSpriteXcursor *sprite_xcursor =
|
||||||
|
@ -1208,7 +1208,7 @@ do_process (MetaKmsImplDevice *impl_device,
|
|||||||
MetaKmsResourceChanges changes = META_KMS_RESOURCE_CHANGE_NONE;
|
MetaKmsResourceChanges changes = META_KMS_RESOURCE_CHANGE_NONE;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaKmsImplDeviceProcess,
|
COGL_TRACE_BEGIN_SCOPED (MetaKmsImplDeviceProcess,
|
||||||
"KMS device impl (processing)");
|
"Meta::KmsImplDevice::do_process()");
|
||||||
|
|
||||||
update = meta_kms_impl_filter_update (impl, latch_crtc, update, flags);
|
update = meta_kms_impl_filter_update (impl, latch_crtc, update, flags);
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ meta_kms_update_states_in_impl (MetaKms *kms,
|
|||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaKmsUpdateStates,
|
COGL_TRACE_BEGIN_SCOPED (MetaKmsUpdateStates,
|
||||||
"KMS (update states)");
|
"Meta::Kms::update_states_in_impl()");
|
||||||
|
|
||||||
meta_assert_in_kms_impl (kms);
|
meta_assert_in_kms_impl (kms);
|
||||||
|
|
||||||
|
@ -429,7 +429,7 @@ meta_onscreen_native_flip_crtc (CoglOnscreen *onscreen,
|
|||||||
MetaKmsPlaneAssignment *plane_assignment;
|
MetaKmsPlaneAssignment *plane_assignment;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaOnscreenNativeFlipCrtcs,
|
COGL_TRACE_BEGIN_SCOPED (MetaOnscreenNativeFlipCrtcs,
|
||||||
"Onscreen (flip CRTCs)");
|
"Meta::OnscreenNative::flip_crtc()");
|
||||||
|
|
||||||
gpu_kms = META_GPU_KMS (meta_crtc_get_gpu (crtc));
|
gpu_kms = META_GPU_KMS (meta_crtc_get_gpu (crtc));
|
||||||
|
|
||||||
@ -482,7 +482,7 @@ meta_onscreen_native_set_crtc_mode (CoglOnscreen *onscreen,
|
|||||||
MetaCrtcKms *crtc_kms = META_CRTC_KMS (onscreen_native->crtc);
|
MetaCrtcKms *crtc_kms = META_CRTC_KMS (onscreen_native->crtc);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaOnscreenNativeSetCrtcModes,
|
COGL_TRACE_BEGIN_SCOPED (MetaOnscreenNativeSetCrtcModes,
|
||||||
"Onscreen (set CRTC modes)");
|
"Meta::OnscreenNative::set_crtc_mode()");
|
||||||
|
|
||||||
switch (renderer_gpu_data->mode)
|
switch (renderer_gpu_data->mode)
|
||||||
{
|
{
|
||||||
@ -616,7 +616,7 @@ copy_shared_framebuffer_gpu (CoglOnscreen *onscreen,
|
|||||||
struct gbm_bo *bo;
|
struct gbm_bo *bo;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (CopySharedFramebufferSecondaryGpu,
|
COGL_TRACE_BEGIN_SCOPED (CopySharedFramebufferSecondaryGpu,
|
||||||
"FB Copy (secondary GPU)");
|
"copy_shared_framebuffer_gpu()");
|
||||||
|
|
||||||
render_device = renderer_gpu_data->render_device;
|
render_device = renderer_gpu_data->render_device;
|
||||||
egl_display = meta_render_device_get_egl_display (render_device);
|
egl_display = meta_render_device_get_egl_display (render_device);
|
||||||
@ -723,7 +723,7 @@ copy_shared_framebuffer_primary_gpu (CoglOnscreen *onscre
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (CopySharedFramebufferPrimaryGpu,
|
COGL_TRACE_BEGIN_SCOPED (CopySharedFramebufferPrimaryGpu,
|
||||||
"FB Copy (primary GPU)");
|
"copy_shared_framebuffer_primary_gpu()");
|
||||||
|
|
||||||
if (!secondary_gpu_state ||
|
if (!secondary_gpu_state ||
|
||||||
secondary_gpu_state->egl_surface == EGL_NO_SURFACE)
|
secondary_gpu_state->egl_surface == EGL_NO_SURFACE)
|
||||||
@ -834,7 +834,7 @@ copy_shared_framebuffer_cpu (CoglOnscreen *onscreen,
|
|||||||
gboolean ret;
|
gboolean ret;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (CopySharedFramebufferCpu,
|
COGL_TRACE_BEGIN_SCOPED (CopySharedFramebufferCpu,
|
||||||
"FB Copy (CPU)");
|
"copy_shared_framebuffer_cpu()");
|
||||||
|
|
||||||
buffer_dumb = secondary_gpu_get_next_dumb_buffer (secondary_gpu_state);
|
buffer_dumb = secondary_gpu_get_next_dumb_buffer (secondary_gpu_state);
|
||||||
buffer = META_DRM_BUFFER (buffer_dumb);
|
buffer = META_DRM_BUFFER (buffer_dumb);
|
||||||
@ -882,7 +882,7 @@ update_secondary_gpu_state_pre_swap_buffers (CoglOnscreen *onscreen,
|
|||||||
MetaDrmBuffer *copy = NULL;
|
MetaDrmBuffer *copy = NULL;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaRendererNativeGpuStatePreSwapBuffers,
|
COGL_TRACE_BEGIN_SCOPED (MetaRendererNativeGpuStatePreSwapBuffers,
|
||||||
"Onscreen (secondary gpu pre-swap-buffers)");
|
"update_secondary_gpu_state_pre_swap_buffers()");
|
||||||
|
|
||||||
secondary_gpu_state = onscreen_native->secondary_gpu_state;
|
secondary_gpu_state = onscreen_native->secondary_gpu_state;
|
||||||
if (secondary_gpu_state)
|
if (secondary_gpu_state)
|
||||||
@ -948,7 +948,7 @@ update_secondary_gpu_state_post_swap_buffers (CoglOnscreen *onscreen,
|
|||||||
MetaOnscreenNativeSecondaryGpuState *secondary_gpu_state;
|
MetaOnscreenNativeSecondaryGpuState *secondary_gpu_state;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaRendererNativeGpuStatePostSwapBuffers,
|
COGL_TRACE_BEGIN_SCOPED (MetaRendererNativeGpuStatePostSwapBuffers,
|
||||||
"Onscreen (secondary gpu post-swap-buffers)");
|
"update_secondary_gpu_state_post_swap_buffers()");
|
||||||
|
|
||||||
secondary_gpu_state = onscreen_native->secondary_gpu_state;
|
secondary_gpu_state = onscreen_native->secondary_gpu_state;
|
||||||
if (secondary_gpu_state)
|
if (secondary_gpu_state)
|
||||||
@ -1075,7 +1075,7 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen,
|
|||||||
MetaKmsDevice *kms_device;
|
MetaKmsDevice *kms_device;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaRendererNativeSwapBuffers,
|
COGL_TRACE_BEGIN_SCOPED (MetaRendererNativeSwapBuffers,
|
||||||
"Onscreen (swap-buffers)");
|
"Meta::OnscreenNative::swap_buffers_with_damage()");
|
||||||
|
|
||||||
secondary_gpu_fb =
|
secondary_gpu_fb =
|
||||||
update_secondary_gpu_state_pre_swap_buffers (onscreen,
|
update_secondary_gpu_state_pre_swap_buffers (onscreen,
|
||||||
@ -1188,7 +1188,7 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen,
|
|||||||
}
|
}
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaRendererNativePostKmsUpdate,
|
COGL_TRACE_BEGIN_SCOPED (MetaRendererNativePostKmsUpdate,
|
||||||
"Onscreen (post pending update)");
|
"Meta::OnscreenNative::swap_buffers_with_damage#post_pending_update()");
|
||||||
|
|
||||||
switch (renderer_gpu_data->mode)
|
switch (renderer_gpu_data->mode)
|
||||||
{
|
{
|
||||||
|
@ -244,9 +244,9 @@ static void
|
|||||||
dispatch_libinput (MetaSeatImpl *seat_impl)
|
dispatch_libinput (MetaSeatImpl *seat_impl)
|
||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaSeatImplDispatchLibinput,
|
COGL_TRACE_BEGIN_SCOPED (MetaSeatImplDispatchLibinput,
|
||||||
"MetaSeatImpl (dispatch libinput)");
|
"Meta::SeatImpl::dispatch_libinput()");
|
||||||
|
|
||||||
libinput_dispatch (seat_impl->libinput);
|
libinput_dispatch (seat_impl->libinput);
|
||||||
COGL_TRACE_END (MetaSeatImplDispatchLibinput);
|
|
||||||
|
|
||||||
process_events (seat_impl);
|
process_events (seat_impl);
|
||||||
}
|
}
|
||||||
@ -2651,7 +2651,7 @@ process_events (MetaSeatImpl *seat_impl)
|
|||||||
struct libinput_event *event;
|
struct libinput_event *event;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaSeatImplProcessEvents,
|
COGL_TRACE_BEGIN_SCOPED (MetaSeatImplProcessEvents,
|
||||||
"MetaSeatImpl (process events)");
|
"Meta::SeatImpl::process_events()");
|
||||||
|
|
||||||
while ((event = libinput_get_event (seat_impl->libinput)))
|
while ((event = libinput_get_event (seat_impl->libinput)))
|
||||||
{
|
{
|
||||||
|
@ -940,7 +940,7 @@ maybe_update_top_window_actor_for_views (MetaCompositor *compositor)
|
|||||||
priv->needs_update_top_window_actors = FALSE;
|
priv->needs_update_top_window_actors = FALSE;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (UpdateTopWindowActorForViews,
|
COGL_TRACE_BEGIN_SCOPED (UpdateTopWindowActorForViews,
|
||||||
"Compositor (update top window actors)");
|
"Meta::Compositor::update_top_window_actor_for_views()");
|
||||||
|
|
||||||
stage = CLUTTER_STAGE (meta_backend_get_stage (priv->backend));
|
stage = CLUTTER_STAGE (meta_backend_get_stage (priv->backend));
|
||||||
|
|
||||||
@ -1059,7 +1059,7 @@ meta_compositor_before_paint (MetaCompositor *compositor,
|
|||||||
meta_compositor_get_instance_private (compositor);
|
meta_compositor_get_instance_private (compositor);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaCompositorPrePaint,
|
COGL_TRACE_BEGIN_SCOPED (MetaCompositorPrePaint,
|
||||||
"Compositor (before-paint)");
|
"Meta::Compositor::before_paint()");
|
||||||
|
|
||||||
maybe_update_top_window_actor_for_views (compositor);
|
maybe_update_top_window_actor_for_views (compositor);
|
||||||
|
|
||||||
@ -1124,7 +1124,7 @@ meta_compositor_after_paint (MetaCompositor *compositor,
|
|||||||
meta_compositor_get_instance_private (compositor);
|
meta_compositor_get_instance_private (compositor);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaCompositorPostPaint,
|
COGL_TRACE_BEGIN_SCOPED (MetaCompositorPostPaint,
|
||||||
"Compositor (after-paint)");
|
"Meta::Compositor::after_paint()");
|
||||||
META_COMPOSITOR_GET_CLASS (compositor)->after_paint (compositor, compositor_view);
|
META_COMPOSITOR_GET_CLASS (compositor)->after_paint (compositor, compositor_view);
|
||||||
|
|
||||||
priv->frame_in_progress = FALSE;
|
priv->frame_in_progress = FALSE;
|
||||||
|
@ -116,7 +116,9 @@ later_type_to_string (MetaLaterType when)
|
|||||||
static gboolean
|
static gboolean
|
||||||
meta_later_invoke (MetaLater *later)
|
meta_later_invoke (MetaLater *later)
|
||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_SCOPED (later, later_type_to_string (later->when));
|
COGL_TRACE_BEGIN_SCOPED (later, "Meta::Later::invoke()");
|
||||||
|
COGL_TRACE_DESCRIBE (later, later_type_to_string (later->when));
|
||||||
|
|
||||||
return later->func (later->user_data);
|
return later->func (later->user_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1725,7 +1725,7 @@ meta_display_notify_window_created (MetaDisplay *display,
|
|||||||
MetaWindow *window)
|
MetaWindow *window)
|
||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaDisplayNotifyWindowCreated,
|
COGL_TRACE_BEGIN_SCOPED (MetaDisplayNotifyWindowCreated,
|
||||||
"Display (notify window created)");
|
"Meta::Display::notify_window_created()");
|
||||||
g_signal_emit (display, display_signals[WINDOW_CREATED], 0, window);
|
g_signal_emit (display, display_signals[WINDOW_CREATED], 0, window);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3619,7 +3619,7 @@ update_window_visibilities (MetaDisplay *display,
|
|||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaDisplayUpdateVisibility,
|
COGL_TRACE_BEGIN_SCOPED (MetaDisplayUpdateVisibility,
|
||||||
"Display: Update visibility");
|
"Meta::Display::update_window_visibilities()");
|
||||||
|
|
||||||
for (l = windows; l; l = l->next)
|
for (l = windows; l; l = l->next)
|
||||||
{
|
{
|
||||||
@ -3642,17 +3642,19 @@ update_window_visibilities (MetaDisplay *display,
|
|||||||
should_show = g_list_reverse (should_show);
|
should_show = g_list_reverse (should_show);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaDisplayShowUnplacedWindows,
|
COGL_TRACE_BEGIN_SCOPED (MetaDisplayShowUnplacedWindows,
|
||||||
"Display: Show unplaced windows");
|
"Meta::Display::update_window_visibilities#show_unplaced()");
|
||||||
g_list_foreach (unplaced, (GFunc) meta_window_update_visibility, NULL);
|
g_list_foreach (unplaced, (GFunc) meta_window_update_visibility, NULL);
|
||||||
COGL_TRACE_END (MetaDisplayShowUnplacedWindows);
|
COGL_TRACE_END (MetaDisplayShowUnplacedWindows);
|
||||||
|
|
||||||
meta_stack_freeze (display->stack);
|
meta_stack_freeze (display->stack);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaDisplayShowWindows, "Display: Show windows");
|
COGL_TRACE_BEGIN_SCOPED (MetaDisplayShowWindows,
|
||||||
|
"Meta::Display::update_window_visibilities#show()");
|
||||||
g_list_foreach (should_show, (GFunc) meta_window_update_visibility, NULL);
|
g_list_foreach (should_show, (GFunc) meta_window_update_visibility, NULL);
|
||||||
COGL_TRACE_END (MetaDisplayShowWindows);
|
COGL_TRACE_END (MetaDisplayShowWindows);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaDisplayHideWindows, "Display: Hide windows");
|
COGL_TRACE_BEGIN_SCOPED (MetaDisplayHideWindows,
|
||||||
|
"Meta::Display::update_window_visibilities#hide()");
|
||||||
g_list_foreach (should_hide, (GFunc) meta_window_update_visibility, NULL);
|
g_list_foreach (should_hide, (GFunc) meta_window_update_visibility, NULL);
|
||||||
COGL_TRACE_END (MetaDisplayHideWindows);
|
COGL_TRACE_END (MetaDisplayHideWindows);
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ meta_display_handle_event (MetaDisplay *display,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaDisplayHandleEvent,
|
COGL_TRACE_BEGIN_SCOPED (MetaDisplayHandleEvent,
|
||||||
"MetaDisplay (handle event)");
|
"Meta::Display::handle_event()");
|
||||||
|
|
||||||
has_grab = stage_has_grab (display);
|
has_grab = stage_has_grab (display);
|
||||||
|
|
||||||
|
@ -567,7 +567,7 @@ on_stack_changed (MetaStack *stack,
|
|||||||
GArray *hidden_stack_ids;
|
GArray *hidden_stack_ids;
|
||||||
GList *sorted;
|
GList *sorted;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (StackChanged, "Stack changed");
|
COGL_TRACE_BEGIN_SCOPED (StackChanged, "Meta::StackTracker::on_stack_changed()");
|
||||||
|
|
||||||
meta_topic (META_DEBUG_STACK, "Syncing window stack to server");
|
meta_topic (META_DEBUG_STACK, "Syncing window stack to server");
|
||||||
|
|
||||||
@ -1285,12 +1285,12 @@ meta_stack_tracker_restack_managed (MetaStackTracker *tracker,
|
|||||||
int old_pos, new_pos;
|
int old_pos, new_pos;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManaged,
|
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManaged,
|
||||||
"StackTracker: Restack Managed");
|
"Meta::StackTracker::restack_managed()");
|
||||||
if (n_managed == 0)
|
if (n_managed == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManagedGet,
|
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManagedGet,
|
||||||
"StackTracker: Restack Managed (get)");
|
"Meta::StackTracker::restack_managed#get()");
|
||||||
meta_stack_tracker_get_stack (tracker, &windows, &n_windows);
|
meta_stack_tracker_get_stack (tracker, &windows, &n_windows);
|
||||||
|
|
||||||
/* If the top window has to be restacked, we don't want to move it to the very
|
/* If the top window has to be restacked, we don't want to move it to the very
|
||||||
@ -1310,7 +1310,7 @@ meta_stack_tracker_restack_managed (MetaStackTracker *tracker,
|
|||||||
COGL_TRACE_END (StackTrackerRestackManagedGet);
|
COGL_TRACE_END (StackTrackerRestackManagedGet);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManagedRaise,
|
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManagedRaise,
|
||||||
"StackTracker: Restack Managed (raise)");
|
"Meta::StackTracker::restack_managed#raise()");
|
||||||
new_pos = n_managed - 1;
|
new_pos = n_managed - 1;
|
||||||
if (managed[new_pos] != windows[old_pos])
|
if (managed[new_pos] != windows[old_pos])
|
||||||
{
|
{
|
||||||
@ -1325,7 +1325,7 @@ meta_stack_tracker_restack_managed (MetaStackTracker *tracker,
|
|||||||
new_pos--;
|
new_pos--;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManagedRestack,
|
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManagedRestack,
|
||||||
"StackTracker: Restack Managed (restack)");
|
"Meta::StackTracker::restack_managed#restack()");
|
||||||
while (old_pos >= 0 && new_pos >= 0)
|
while (old_pos >= 0 && new_pos >= 0)
|
||||||
{
|
{
|
||||||
if (meta_stack_tracker_is_guard_window (tracker, windows[old_pos]))
|
if (meta_stack_tracker_is_guard_window (tracker, windows[old_pos]))
|
||||||
@ -1355,7 +1355,7 @@ meta_stack_tracker_restack_managed (MetaStackTracker *tracker,
|
|||||||
COGL_TRACE_END (StackTrackerRestackManagedRestack);
|
COGL_TRACE_END (StackTrackerRestackManagedRestack);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManagedLower,
|
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackManagedLower,
|
||||||
"StackTracker: Restack Managed (lower)");
|
"Meta::StackTracker::restack_managed#lower()");
|
||||||
while (new_pos > 0)
|
while (new_pos > 0)
|
||||||
{
|
{
|
||||||
meta_stack_tracker_lower_below (tracker, managed[new_pos], managed[new_pos - 1]);
|
meta_stack_tracker_lower_below (tracker, managed[new_pos], managed[new_pos - 1]);
|
||||||
@ -1374,7 +1374,7 @@ meta_stack_tracker_restack_at_bottom (MetaStackTracker *tracker,
|
|||||||
int pos;
|
int pos;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackAtBottom,
|
COGL_TRACE_BEGIN_SCOPED (StackTrackerRestackAtBottom,
|
||||||
"Stack tracker: Restack at bottom");
|
"Meta::StackTracker::restack_at_bottom()");
|
||||||
meta_stack_tracker_get_stack (tracker, &windows, &n_windows);
|
meta_stack_tracker_get_stack (tracker, &windows, &n_windows);
|
||||||
|
|
||||||
for (pos = 0; pos < n_new_order; pos++)
|
for (pos = 0; pos < n_new_order; pos++)
|
||||||
|
@ -175,7 +175,7 @@ meta_stack_changed (MetaStack *stack)
|
|||||||
if (stack->freeze_count > 0)
|
if (stack->freeze_count > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaStackChangedSort, "Stack: Changed");
|
COGL_TRACE_BEGIN_SCOPED (MetaStackChangedSort, "Meta::Stack::changed()");
|
||||||
|
|
||||||
stack_ensure_sorted (stack);
|
stack_ensure_sorted (stack);
|
||||||
g_signal_emit (stack, signals[CHANGED], 0);
|
g_signal_emit (stack, signals[CHANGED], 0);
|
||||||
@ -188,7 +188,7 @@ meta_stack_add (MetaStack *stack,
|
|||||||
MetaWorkspaceManager *workspace_manager = window->display->workspace_manager;
|
MetaWorkspaceManager *workspace_manager = window->display->workspace_manager;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaStackAdd,
|
COGL_TRACE_BEGIN_SCOPED (MetaStackAdd,
|
||||||
"Stack (add window)");
|
"Meta::Stack::add()");
|
||||||
|
|
||||||
g_return_if_fail (meta_window_is_stackable (window));
|
g_return_if_fail (meta_window_is_stackable (window));
|
||||||
|
|
||||||
@ -221,7 +221,7 @@ meta_stack_remove (MetaStack *stack,
|
|||||||
MetaWorkspaceManager *workspace_manager = window->display->workspace_manager;
|
MetaWorkspaceManager *workspace_manager = window->display->workspace_manager;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaStackRemove,
|
COGL_TRACE_BEGIN_SCOPED (MetaStackRemove,
|
||||||
"Stack (remove window)");
|
"Meta::Stack::remove()");
|
||||||
|
|
||||||
meta_topic (META_DEBUG_STACK, "Removing window %s from the stack", window->desc);
|
meta_topic (META_DEBUG_STACK, "Removing window %s from the stack", window->desc);
|
||||||
|
|
||||||
@ -333,7 +333,7 @@ meta_stack_thaw (MetaStack *stack)
|
|||||||
{
|
{
|
||||||
g_return_if_fail (stack->freeze_count > 0);
|
g_return_if_fail (stack->freeze_count > 0);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaStackThaw, "Stack: thaw");
|
COGL_TRACE_BEGIN_SCOPED (MetaStackThaw, "Meta::Stack::thaw()");
|
||||||
|
|
||||||
stack->freeze_count -= 1;
|
stack->freeze_count -= 1;
|
||||||
meta_stack_changed (stack);
|
meta_stack_changed (stack);
|
||||||
|
@ -1010,7 +1010,7 @@ static void
|
|||||||
meta_window_manage (MetaWindow *window)
|
meta_window_manage (MetaWindow *window)
|
||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWindowManage,
|
COGL_TRACE_BEGIN_SCOPED (MetaWindowManage,
|
||||||
"Window (manage)");
|
"Meta::Window::manage()");
|
||||||
|
|
||||||
META_WINDOW_GET_CLASS (window)->manage (window);
|
META_WINDOW_GET_CLASS (window)->manage (window);
|
||||||
}
|
}
|
||||||
@ -1025,7 +1025,7 @@ meta_window_constructed (GObject *object)
|
|||||||
MetaWorkspaceManager *workspace_manager = display->workspace_manager;
|
MetaWorkspaceManager *workspace_manager = display->workspace_manager;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWindowSharedInit,
|
COGL_TRACE_BEGIN_SCOPED (MetaWindowSharedInit,
|
||||||
"Window (init)");
|
"Meta::Window::constructed()");
|
||||||
|
|
||||||
window->constructing = TRUE;
|
window->constructing = TRUE;
|
||||||
|
|
||||||
|
@ -365,7 +365,7 @@ meta_workspace_add_window (MetaWorkspace *workspace,
|
|||||||
g_return_if_fail (g_list_find (workspace->mru_list, window) == NULL);
|
g_return_if_fail (g_list_find (workspace->mru_list, window) == NULL);
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWorkspaceAddWindow,
|
COGL_TRACE_BEGIN_SCOPED (MetaWorkspaceAddWindow,
|
||||||
"Workspace (add window)");
|
"Meta::Workspace::add_window()");
|
||||||
|
|
||||||
workspace_manager = workspace->display->workspace_manager;
|
workspace_manager = workspace->display->workspace_manager;
|
||||||
|
|
||||||
@ -395,7 +395,7 @@ meta_workspace_remove_window (MetaWorkspace *workspace,
|
|||||||
MetaWorkspaceManager *workspace_manager = workspace->display->workspace_manager;
|
MetaWorkspaceManager *workspace_manager = workspace->display->workspace_manager;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWorkspaceRemoveWindow,
|
COGL_TRACE_BEGIN_SCOPED (MetaWorkspaceRemoveWindow,
|
||||||
"Workspace (remove window)");
|
"Meta::Workspace::remove_window()");
|
||||||
|
|
||||||
workspace->windows = g_list_remove (workspace->windows, window);
|
workspace->windows = g_list_remove (workspace->windows, window);
|
||||||
|
|
||||||
|
@ -585,7 +585,7 @@ meta_wayland_buffer_attach (MetaWaylandBuffer *buffer,
|
|||||||
MetaMultiTexture **texture,
|
MetaMultiTexture **texture,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWaylandBufferAttach, "WaylandBuffer (attach)");
|
COGL_TRACE_BEGIN_SCOPED (MetaWaylandBufferAttach, "Meta::WaylandBuffer::attach()");
|
||||||
|
|
||||||
clear_tainted_scanout_onscreens (buffer);
|
clear_tainted_scanout_onscreens (buffer);
|
||||||
|
|
||||||
@ -818,7 +818,7 @@ meta_wayland_buffer_try_acquire_scanout (MetaWaylandBuffer *buffer,
|
|||||||
CoglScanout *scanout = NULL;
|
CoglScanout *scanout = NULL;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWaylandBufferTryScanout,
|
COGL_TRACE_BEGIN_SCOPED (MetaWaylandBufferTryScanout,
|
||||||
"WaylandBuffer (try scanout)");
|
"Meta::WaylandBuffer::try_acquire_scanout()");
|
||||||
|
|
||||||
if (buffer->tainted_scanout_onscreens &&
|
if (buffer->tainted_scanout_onscreens &&
|
||||||
g_hash_table_lookup (buffer->tainted_scanout_onscreens, onscreen))
|
g_hash_table_lookup (buffer->tainted_scanout_onscreens, onscreen))
|
||||||
|
@ -916,7 +916,7 @@ meta_wayland_surface_commit (MetaWaylandSurface *surface)
|
|||||||
MetaWaylandSurface *subsurface_surface;
|
MetaWaylandSurface *subsurface_surface;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWaylandSurfaceCommit,
|
COGL_TRACE_BEGIN_SCOPED (MetaWaylandSurfaceCommit,
|
||||||
"WaylandSurface (commit)");
|
"Meta::WaylandSurface::commit()");
|
||||||
|
|
||||||
if (buffer)
|
if (buffer)
|
||||||
{
|
{
|
||||||
|
@ -1846,7 +1846,7 @@ meta_x11_display_handle_xevent (MetaX11Display *x11_display,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaX11DisplayHandleXevent,
|
COGL_TRACE_BEGIN_SCOPED (MetaX11DisplayHandleXevent,
|
||||||
"X11Display (handle X11 event)");
|
"Meta::X11Display::handle_xevent()");
|
||||||
|
|
||||||
if (event->type == GenericEvent)
|
if (event->type == GenericEvent)
|
||||||
XGetEventData (x11_display->xdisplay, &event->xcookie);
|
XGetEventData (x11_display->xdisplay, &event->xcookie);
|
||||||
|
@ -283,7 +283,7 @@ meta_sync_counter_update (MetaSyncCounter *sync_counter,
|
|||||||
gboolean needs_frame_drawn = FALSE;
|
gboolean needs_frame_drawn = FALSE;
|
||||||
gboolean no_delay_frame = FALSE;
|
gboolean no_delay_frame = FALSE;
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWindowSyncRequestCounter, "X11: Sync request counter");
|
COGL_TRACE_BEGIN_SCOPED (MetaWindowSyncRequestCounter, "Meta::SyncCounter::update()");
|
||||||
|
|
||||||
if (sync_counter->extended_sync_request_counter && new_counter_value % 2 == 0)
|
if (sync_counter->extended_sync_request_counter && new_counter_value % 2 == 0)
|
||||||
{
|
{
|
||||||
@ -361,7 +361,7 @@ do_send_frame_drawn (MetaSyncCounter *sync_counter,
|
|||||||
XClientMessageEvent ev = { 0, };
|
XClientMessageEvent ev = { 0, };
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWindowActorX11FrameDrawn,
|
COGL_TRACE_BEGIN_SCOPED (MetaWindowActorX11FrameDrawn,
|
||||||
"X11: Send _NET_WM_FRAME_DRAWN");
|
"Meta::SyncCounter::do_send_frame_drawn()");
|
||||||
|
|
||||||
now_us = g_get_monotonic_time ();
|
now_us = g_get_monotonic_time ();
|
||||||
frame->frame_drawn_time =
|
frame->frame_drawn_time =
|
||||||
@ -410,7 +410,7 @@ do_send_frame_timings (MetaSyncCounter *sync_counter,
|
|||||||
XClientMessageEvent ev = { 0, };
|
XClientMessageEvent ev = { 0, };
|
||||||
|
|
||||||
COGL_TRACE_BEGIN_SCOPED (MetaWindowActorX11FrameTimings,
|
COGL_TRACE_BEGIN_SCOPED (MetaWindowActorX11FrameTimings,
|
||||||
"X11: Send _NET_WM_FRAME_TIMINGS");
|
"Meta::SyncCounter::do_send_frame_timings()");
|
||||||
|
|
||||||
ev.type = ClientMessage;
|
ev.type = ClientMessage;
|
||||||
ev.window = sync_counter->xwindow;
|
ev.window = sync_counter->xwindow;
|
||||||
|
Loading…
Reference in New Issue
Block a user