Skip to content

Avoid OpMetricsDb construction when parsing device step events if only step markers and step times are required. - #3612

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_992579135
Oct 9, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_992579135

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Avoid OpMetricsDb construction when parsing device step events if only step markers and step times are required.

ConvertDeviceTraceXPlaneToStepEventsWithOptions now supports DeviceStepEventsOptions to skip per-core op metrics and GPU stream event parsing when collect_op_metrics is false, leaving ConvertDeviceTraceXPlaneToStepEvents non-overloaded. ConvertXSpaceToEventTimeFractionAnalyzerResults uses ConvertDeviceTraceXPlaneToStepMarkers since it only needs step markers, avoiding unnecessary memory overhead and protobuf copying.

@copybara-service copybara-service Bot changed the title [XProf] Avoid OpMetricsDb construction in ConvertXSpaceToEventTimeFractionAnalyzerResults Avoid OpMetricsDb construction when parsing device step events if only step markers and step times are required. Oct 2, 2026
@copybara-service
copybara-service Bot force-pushed the test_992579135 branch 3 times, most recently from fde854b to 0272fcc Compare October 9, 2026 19:05
…y step markers and step times are required.

ConvertDeviceTraceXPlaneToStepEventsWithOptions now supports DeviceStepEventsOptions to skip per-core op metrics and GPU stream event parsing when collect_op_metrics is false, leaving ConvertDeviceTraceXPlaneToStepEvents non-overloaded. ConvertXSpaceToEventTimeFractionAnalyzerResults uses ConvertDeviceTraceXPlaneToStepMarkers since it only needs step markers, avoiding unnecessary memory overhead and protobuf copying.

PiperOrigin-RevId: 996682561
@copybara-service
copybara-service Bot merged commit dee9a00 into master Oct 9, 2026
1 check passed
@copybara-service
copybara-service Bot deleted the test_992579135 branch October 9, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants