ODMS Perf: Add perfetto tracing to LanguageModel [chromium/src : main]

4 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
Apr 20, 2026, 9:02:39 PM (6 days ago) Apr 20
to Nathan Memmott, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

AI Code Reviewer added 1 comment

File third_party/blink/renderer/modules/ai/language_model_create_client.h
Line 51, Patchset 1 (Latest): const perfetto::Track& perfetto_id() { return perfetto_id_; }
AI Code Reviewer . unresolved

nit: Blink Style Guide: Naming - Use 'CamelCase' for all function names. Please rename `perfetto_id()` to `PerfettoId()` to match the naming convention used by the rest of the file.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I4b7d9c257e96e0e2d1e6012aff4283ea4fa674d4
Gerrit-Change-Number: 7780138
Gerrit-PatchSet: 1
Gerrit-Owner: Nathan Memmott <mem...@chromium.org>
Gerrit-Reviewer: Nathan Memmott <mem...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Comment-Date: Tue, 21 Apr 2026 01:02:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Nathan Memmott (Gerrit)

unread,
Apr 20, 2026, 9:06:36 PM (6 days ago) Apr 20
to AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

Nathan Memmott added 1 comment

File third_party/blink/renderer/modules/ai/language_model_create_client.h
Line 51, Patchset 1: const perfetto::Track& perfetto_id() { return perfetto_id_; }
AI Code Reviewer . resolved

nit: Blink Style Guide: Naming - Use 'CamelCase' for all function names. Please rename `perfetto_id()` to `PerfettoId()` to match the naming convention used by the rest of the file.

To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason


_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Nathan Memmott

Done

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I4b7d9c257e96e0e2d1e6012aff4283ea4fa674d4
    Gerrit-Change-Number: 7780138
    Gerrit-PatchSet: 2
    Gerrit-Owner: Nathan Memmott <mem...@chromium.org>
    Gerrit-Reviewer: Nathan Memmott <mem...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Comment-Date: Tue, 21 Apr 2026 01:06:29 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Steven Holte (Gerrit)

    unread,
    Apr 20, 2026, 11:52:54 PM (6 days ago) Apr 20
    to Nathan Memmott, Steven Holte, AI Code Reviewer, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Nathan Memmott

    Steven Holte added 1 comment

    File third_party/blink/renderer/modules/ai/language_model_create_client.cc
    Line 250, Patchset 2 (Latest): PerfettoId());
    Steven Holte . unresolved

    I think you probably want a Flow rather than a Track, with regular rather than async events.

    perfetto::Flow::FromPointer(this)

    perfetto::TerminatingFlow::FromPointer(this)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Nathan Memmott
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I4b7d9c257e96e0e2d1e6012aff4283ea4fa674d4
      Gerrit-Change-Number: 7780138
      Gerrit-PatchSet: 2
      Gerrit-Owner: Nathan Memmott <mem...@chromium.org>
      Gerrit-Reviewer: Nathan Memmott <mem...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-CC: Steven Holte <ho...@chromium.org>
      Gerrit-Attention: Nathan Memmott <mem...@chromium.org>
      Gerrit-Comment-Date: Tue, 21 Apr 2026 03:52:45 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages