screen-cast/stream-src: Add trace spans to recording
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3417>
This commit is contained in:
parent
ff1ee92aa7
commit
e11ee42dfa
@ -599,6 +599,9 @@ do_record_frame (MetaScreenCastStreamSrc *src,
|
|||||||
int height = priv->video_format.size.height;
|
int height = priv->video_format.size.height;
|
||||||
int stride = meta_screen_cast_stream_src_calculate_stride (src, spa_data);
|
int stride = meta_screen_cast_stream_src_calculate_stride (src, spa_data);
|
||||||
|
|
||||||
|
COGL_TRACE_BEGIN_SCOPED (RecordToBuffer,
|
||||||
|
"Meta::ScreenCastStreamSrc::record_to_buffer()");
|
||||||
|
|
||||||
return meta_screen_cast_stream_src_record_to_buffer (src,
|
return meta_screen_cast_stream_src_record_to_buffer (src,
|
||||||
paint_phase,
|
paint_phase,
|
||||||
width,
|
width,
|
||||||
@ -615,6 +618,9 @@ do_record_frame (MetaScreenCastStreamSrc *src,
|
|||||||
CoglFramebuffer *dmabuf_fbo =
|
CoglFramebuffer *dmabuf_fbo =
|
||||||
cogl_dma_buf_handle_get_framebuffer (dmabuf_handle);
|
cogl_dma_buf_handle_get_framebuffer (dmabuf_handle);
|
||||||
|
|
||||||
|
COGL_TRACE_BEGIN_SCOPED (RecordToFramebuffer,
|
||||||
|
"Meta::ScreenCastStreamSrc::record_to_framebuffer()");
|
||||||
|
|
||||||
return meta_screen_cast_stream_src_record_to_framebuffer (src,
|
return meta_screen_cast_stream_src_record_to_framebuffer (src,
|
||||||
paint_phase,
|
paint_phase,
|
||||||
dmabuf_fbo,
|
dmabuf_fbo,
|
||||||
@ -765,6 +771,9 @@ meta_screen_cast_stream_src_maybe_record_frame_with_timestamp (MetaScreenCastStr
|
|||||||
struct spa_meta_header *header;
|
struct spa_meta_header *header;
|
||||||
struct spa_data *spa_data;
|
struct spa_data *spa_data;
|
||||||
|
|
||||||
|
COGL_TRACE_BEGIN_SCOPED (MaybeRecordFrame,
|
||||||
|
"Meta::ScreenCastStreamSrc::maybe_record_frame_with_timestamp()");
|
||||||
|
|
||||||
/* Accumulate the damaged region since we might not schedule a frame capture
|
/* Accumulate the damaged region since we might not schedule a frame capture
|
||||||
* eventually but once we do, we should report all the previous damaged areas.
|
* eventually but once we do, we should report all the previous damaged areas.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user