Skip to content

Commit 143690d

Browse files
Connor ClarkDevtools-frontend LUCI CQ
authored andcommitted
[AI] Ignore CPU profile traces for performance agent
The agent is not equipped to handle these, so don't activate the AI panel for them. Bug: 433466849 Change-Id: Iebf5cb7318ecff67675cd8baf5a86041f372370d Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7017630 Auto-Submit: Connor Clark <[email protected]> Commit-Queue: Connor Clark <[email protected]> Reviewed-by: Paul Irish <[email protected]>
1 parent 6e40b28 commit 143690d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

front_end/panels/timeline/TimelinePanel.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,8 +2249,10 @@ export class TimelinePanel extends Common.ObjectWrapper.eventMixin<EventTypes, t
22492249
}
22502250
}
22512251

2252-
UI.Context.Context.instance().setFlavor(
2253-
AiAssistanceModel.AgentFocus, AiAssistanceModel.AgentFocus.fromParsedTrace(parsedTrace));
2252+
if (parsedTrace.metadata.dataOrigin !== Trace.Types.File.DataOrigin.CPU_PROFILE) {
2253+
UI.Context.Context.instance().setFlavor(
2254+
AiAssistanceModel.AgentFocus, AiAssistanceModel.AgentFocus.fromParsedTrace(parsedTrace));
2255+
}
22542256
}
22552257

22562258
#onAnnotationModifiedEvent(e: Event): void {

0 commit comments

Comments
 (0)