AI Slop Code RIsk Monitor

google/perfetto

Production-grade client-side tracing, profiling, and analysis for complex software systems.

7.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for google/perfetto, a C++ project with 6,626 GitHub stars. SynthScan examined 799,552 lines of code across 4314 source files, recording 6152 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 7.8 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

7.8
Adjusted Signal
7.8
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
6.6K
Stars
C++
Language
799.6K
Lines of Code
4.3K
Files
6.2K
Pattern Hits
2026-10-12
Scan Date
0.01
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 26.6/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 5407 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.7/100 · LOW

Are imports declared and package/API names verified? 598 finding(s).

Agent Over-Engineering Ratio 8.9/100 · LOW

Are wrappers, guards, and repeated structures necessary? 1684 finding(s).

PR Review Velocity Impact 34.3/100 · MEDIUM

Which changes need focused human review? 6152 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 7HIGH 39MEDIUM 158LOW 5948

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 6152 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block3676 hits · 3607 pts
SeverityFileLineSnippetContext
LOWui/.eslintrc.js61 // Rest parameters are not equivalent to 'arguments'.COMMENT
LOWui/playwright.config.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/eslint.config.js1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/vitest.setup.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/config/syntaqlite_mock.js1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/release/build_channel.py1#!/usr/bin/env python3COMMENT
LOWui/src/types/vitest.d.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/src/types/vite.d.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/src/types/vite.d.ts21// @types/* package (node, jest, chrome, mithril, ...) and break the build.COMMENT
LOWui/src/engine_bench/index.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/src/engine_bench/bench.test.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/src/engine_bench/worker.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/src/protos/index.ts1// Copyright (C) 2018 The Android Open Source ProjectCOMMENT
LOWui/src/core/command_manager.ts1// Copyright (C) 2023 The Android Open Source ProjectCOMMENT
LOWui/src/core/cookie_consent.ts1// Copyright (C) 2020 The Android Open Source ProjectCOMMENT
LOWui/src/core/plugin_manager.ts1// Copyright (C) 2022 The Android Open Source ProjectCOMMENT
LOWui/src/core/plugin_manager.ts41 // The feature flag used to allow users to change whether this plugin shouldCOMMENT
LOWui/src/core/statusbar_manager.ts1// Copyright (C) 2025 The Android Open Source ProjectCOMMENT
LOWui/src/core/feature_flags_unittest.ts1// Copyright (C) 2021 The Android Open Source ProjectCOMMENT
LOWui/src/core/minimap_manager.ts1// Copyright (C) 2025 The Android Open Source ProjectCOMMENT
LOWui/src/core/analytics_impl.ts1// Copyright (C) 2020 The Android Open Source ProjectCOMMENT
LOWui/src/core/sql_search.ts1// Copyright (C) 2025 The Android Open Source ProjectCOMMENT
LOWui/src/core/trace_source.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/trace_source.ts61 readonly fileName?: string;COMMENT
LOWui/src/core/trace_source.ts81 // onTraceLoad() and can be used to trigger plugin-specific-behaviours (e.g.COMMENT
LOWui/src/core/workspace_manager.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/scroll_helper.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/side_panel_manager.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/src/core/command_manager_unittest.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/src/core/metatracing_unittest.ts1// Copyright (C) 2023 The Android Open Source ProjectCOMMENT
LOWui/src/core/event_set.ts1// Copyright (C) 2023 The Android Open Source ProjectCOMMENT
LOWui/src/core/event_set.ts141export type UntypedEventSet = EventSet<any>;COMMENT
LOWui/src/core/event_set.ts181}COMMENT
LOWui/src/core/event_set.ts601// In more detail:COMMENT
LOWui/src/core/event_set_nocompile_test.ts1// Copyright (C) 2023 The Android Open Source ProjectCOMMENT
LOWui/src/core/router.ts1// Copyright (C) 2018 The Android Open Source ProjectCOMMENT
LOWui/src/core/router.ts21COMMENT
LOWui/src/core/router.ts41}COMMENT
LOWui/src/core/router.ts81COMMENT
LOWui/src/core/perf_manager.ts1// Copyright (C) 2018 The Android Open Source ProjectCOMMENT
LOWui/src/core/channels.ts1// Copyright (C) 2021 The Android Open Source ProjectCOMMENT
LOWui/src/core/fake_trace_impl.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/omnibox_manager.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/settings_manager.ts1// Copyright (C) 2025 The Android Open Source ProjectCOMMENT
LOWui/src/core/state_serialization.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/state_serialization.ts81}COMMENT
LOWui/src/core/sidebar_manager.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/tab_manager.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/track_manager_unittest.ts1// Copyright (C) 2023 The Android Open Source ProjectCOMMENT
LOWui/src/core/startup_command_allowlist.ts1// Copyright (C) 2025 The Android Open Source ProjectCOMMENT
LOWui/src/core/settings_manager_unittest.ts1// Copyright (C) 2025 The Android Open Source ProjectCOMMENT
LOWui/src/core/router_unittest.ts1// Copyright (C) 2018 The Android Open Source ProjectCOMMENT
LOWui/src/core/storage.ts1// Copyright (C) 2025 The Android Open Source ProjectCOMMENT
LOWui/src/core/color_unittest.ts1// Copyright (C) 2023 The Android Open Source ProjectCOMMENT
LOWui/src/core/perf_stats.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/open_trace_files.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/src/core/trace_impl.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/initial_page_manager.ts1// Copyright (C) 2026 The Android Open Source ProjectCOMMENT
LOWui/src/core/note_manager.ts1// Copyright (C) 2024 The Android Open Source ProjectCOMMENT
LOWui/src/core/load_trace.ts1// Copyright (C) 2018 The Android Open Source ProjectCOMMENT
3616 more matches not shown…
Hyper-Verbose Identifiers1533 hits · 964 pts
SeverityFileLineSnippetContext
LOWui/release/build_channel.py243def make_other_channel_updater(channel, new_version):CODE
LOWui/src/core/event_set_nocompile_test.ts41export function eventMustNotHaveExtraKeys(): Event<KeySet> {CODE
LOWui/src/core/fake_trace_impl.ts35export function initializeAppImplForTesting(): AppImpl {CODE
LOWui/src/core/load_trace.ts119async function defineMaxLayoutDepthSqlFunction(engine: Engine): Promise<void> {CODE
LOWui/src/core/load_trace.ts395function showStartupCommandIssuesDialog(CODE
LOWui/src/core/load_trace.ts473async function computeTraceReliableRangeStart(engine: Engine): Promise<time> {CODE
LOWui/src/core/load_trace.ts717async function getTracingMetadataTimeBounds(engine: Engine): Promise<TimeSpan> {CODE
LOWui/src/core/dataset_search.ts78async function searchTracksUsingProvider(CODE
LOWui/src/core/search_result_utils.ts136export function formatSearchResultDifference(CODE
LOWui/src/core/timeline.ts532function getTraceMidnightInTimezone(CODE
LOWui/src/core/metatracing.ts67export function disableMetatracingAndGetTrace(): Uint8Array {CODE
LOWui/src/core/metatracing.ts76export function getEnabledMetatracingCategories():CODE
LOWui/src/frontend/post_message_handler.ts171function shouldGracefullyIgnoreMessage(messageEvent: MessageEvent) {CODE
LOWui/src/frontend/rpc_http_dialog.ts48function getIncompatibleRpcMessage(tpStatus: protos.StatusResult): string {CODE
LOWui/src/frontend/rpc_http_dialog.ts70function getVersionMismatchMessage(tpStatus: protos.StatusResult): string {CODE
LOWui/src/frontend/rpc_http_dialog.ts235async function showDialogVersionMismatch(CODE
LOWui/src/frontend/rpc_http_dialog.ts274async function showDialogIncompatibleRPC(CODE
LOWui/src/frontend/rpc_http_dialog.ts307async function showDialogToUsePreloadedTrace(CODE
LOWui/src/frontend/trace_url_handler.ts250function openTraceFromAndroidBugTool() {CODE
LOWui/src/frontend/index.ts133function setupContentSecurityPolicy() {CODE
LOWui/src/frontend/index.ts499function maybeChangeRpcPortFromFragment() {CODE
LOWui/src/frontend/error_dialog.ts623function showWebsocketConnectionIssue(message: string): void {CODE
LOWui/src/plugins/dev.perfetto.SqlModules/sql_modules.ts156export function isTableEffectivelyDisabled(CODE
LOW…tto.TraceProcessorTrack/trace_processor_state_track.ts42export async function createTraceProcessorStateTrack({CODE
LOW…tto.TraceProcessorTrack/trace_processor_slice_track.ts59export async function createTraceProcessorSliceTrack({CODE
LOWui/src/plugins/dev.perfetto.JournaldLog/index.ts48function isJournaldLogFilteringCriteria(CODE
LOWui/src/plugins/dev.perfetto.JournaldLog/index.ts66function migrateJournaldPluginState(init: unknown): JournaldLogPluginState {CODE
LOW…c/plugins/dev.perfetto.AutoPinAndExpandTracks/index.ts407function addOrReplaceNamedPinnedTracks({name, tracks}: SavedNamedPinnedTracks) {CODE
LOW…/plugins/dev.perfetto.WidgetsPage/demos/charts_demo.ts1504function generateLineChartSampleData(): LineChartData {CODE
LOW…/plugins/dev.perfetto.WidgetsPage/demos/charts_demo.ts1517function generateMultiSeriesLineData(): LineChartData {CODE
LOW…gins/dev.perfetto.HeapProfile/incomplete_flamegraph.ts33export function incompleteFlamegraphModal(CODE
LOW…gins/dev.perfetto.HeapProfile/oome_callstack_common.ts24export function buildOomeCallstackMetrics(CODE
LOW…dev.perfetto.HeapProfile/heap_profile_details_panel.ts597function flamegraphMetricsForHeapProfile(CODE
LOW…dev.perfetto.HeapProfile/heap_profile_details_panel.ts723function getHeapGraphDuplicateObjectsView(CODE
LOW…dev.perfetto.HeapProfile/heap_profile_details_panel.ts738function getHeapGraphNodeOptionalActions(CODE
LOW…dev.perfetto.HeapProfile/heap_profile_details_panel.ts768function getHeapGraphRootOptionalActions(CODE
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts696export async function fetchShortestPathFromRoot(CODE
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1956export async function enrichFieldsWithReachable(CODE
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1981export async function enrichArrayElemsWithReachable(CODE
LOW…ns/com.android.HeapDumpExplorer/views/overview_view.ts63function makeDuplicateBitmapSchema(navigate: NavFn): ColumnSchema {CODE
LOW…ns/com.android.HeapDumpExplorer/views/overview_view.ts143function makeDuplicateStringSchema(navigate: NavFn): ColumnSchema {CODE
LOWui/src/plugins/dev.perfetto.Memscope/index.ts185function parseMemoryOverviewSubpage(subpage?: string): MemoryOverviewSubpage {CODE
LOWui/src/plugins/dev.perfetto.Memscope/index.ts201function formatMemoryOverviewSubpage(CODE
LOWui/src/plugins/dev.perfetto.Memscope/index.ts215function resolveMemoryOverviewRoute(CODE
LOW…gins/dev.perfetto.Memscope/sessions/profile_session.ts129function buildProcessProfileConfig(CODE
LOWui/src/plugins/dev.perfetto.Memscope/views/dashboard.ts44function buildProcessMemoryBreakdown(CODE
LOW…plugins/dev.perfetto.Memscope/views/tabs/page_cache.ts94function buildFileCacheBreakdownTimeSeries(CODE
LOW…plugins/dev.perfetto.Memscope/views/tabs/page_cache.ts155function buildFileCacheActivityTimeSeries(CODE
LOWui/src/plugins/dev.perfetto.Sched/thread_count.ts18async function threadLevelParallelismInit(trace: Trace): Promise<void> {CODE
LOWui/src/plugins/dev.perfetto.Sched/index.ts67function uriForActiveCPUCountTrack(CODE
LOWui/src/plugins/com.meta.GpuCompute/details.ts517export async function fetchSelectedKernelMetricData(CODE
LOW…ugins/com.meta.GpuCompute/section/launch_statistics.ts17export function registerLaunchStatisticsSection(reg: SectionRegistry): void {CODE
LOW…/plugins/com.meta.GpuCompute/section/speed_of_light.ts17export function registerSpeedOfLightSection(reg: SectionRegistry): void {CODE
LOW…m.meta.GpuCompute/section/compute_workload_analysis.ts17export function registerComputeWorkloadAnalysisSection(CODE
LOWui/src/plugins/dev.perfetto.Frames/index_unittest.ts140function setExperimentalJankEnabled(enabled: boolean) {CODE
LOWui/src/plugins/dev.perfetto.Frames/index.ts66export function getProcessFrameTimelineUris(upid: number): string[] {CODE
LOW…c/plugins/dev.perfetto.Frames/expected_frames_track.ts84export function createExpectedFramesTrack(CODE
LOWui/src/plugins/org.kernel.Wattson/index.ts226async function addWattsonMarkersElements(ctx: Trace, group: TrackNode) {CODE
LOW…calUserInteractions/critical_user_interaction_track.ts24export function createCriticalUserInteractionTrack(trace: Trace, uri: string) {CODE
LOW…c/plugins/dev.perfetto.StackSamples/profiling_track.ts203function renderProfilingDetailsPanel(CODE
1473 more matches not shown…
Unused Imports561 hits · 561 pts
SeverityFileLineSnippetContext
LOWinfra/perfetto.dev/src/gen_stdlib_docs_md.py16CODE
LOWinfra/perfetto.dev/src/gen_stdlib_docs_md.py17CODE
LOWinfra/perfetto.dev/src/gen_stdlib_docs_md.py18CODE
LOWinfra/ci/common_utils.py26CODE
LOWinfra/perfetto-get.appspot.com/main.py15CODE
LOWtools/check_sql_metrics.py19CODE
LOWtools/check_sql_metrics.py20CODE
LOWtools/check_sql_metrics.py21CODE
LOWtools/test_gen_amalgamated.py16CODE
LOWtools/serialize_test_trace.py16CODE
LOWtools/serialize_test_trace.py17CODE
LOWtools/serialize_test_trace.py18CODE
LOWtools/export_power_profiles.py7CODE
LOWtools/compat.py16CODE
LOWtools/compat.py19CODE
LOWtools/compat.py21CODE
LOWtools/run_buildtools_binary.py17CODE
LOWtools/gen_clickhouse_bigtrace_protos.py17CODE
LOWtools/gn_utils.py18CODE
LOWtools/pull_ftrace_format_files.py16CODE
LOWtools/pull_ftrace_format_files.py18CODE
LOWtools/get_llvm_flags.py3CODE
LOWtools/diff_test_trace_processor.py16CODE
LOWtools/diff_test_trace_processor.py17CODE
LOWtools/diff_test_trace_processor.py18CODE
LOWtools/diff_test_trace_processor.py30CODE
LOWtools/setup_all_configs.py16CODE
LOWtools/setup_all_configs.py17CODE
LOWtools/setup_all_configs.py18CODE
LOWtools/release/release_perfetto.py18CODE
LOWtest/stress_test/gen_configs_blob.py25CODE
LOWtest/stress_test/gen_configs_blob.py25CODE
LOWtest/stress_test/gen_configs_blob.py25CODE
LOWtest/trace_processor/PRESUBMIT.py15CODE
LOWtest/trace_processor/PRESUBMIT.py17CODE
LOWtest/trace_processor/PRESUBMIT.py18CODE
LOWtest/trace_processor/diff_tests/include_index.py19CODE
LOWtest/trace_processor/diff_tests/metrics/power/tests.py16CODE
LOWtest/trace_processor/diff_tests/metrics/power/tests.py17CODE
LOWtest/trace_processor/diff_tests/metrics/power/tests.py17CODE
LOWtest/trace_processor/diff_tests/metrics/power/tests.py17CODE
LOWtest/trace_processor/diff_tests/metrics/codecs/tests.py17CODE
LOWtest/trace_processor/diff_tests/metrics/codecs/tests.py17CODE
LOWtest/trace_processor/diff_tests/metrics/codecs/tests.py17CODE
LOW…ace_processor/diff_tests/metrics/memory/android_ion.py16CODE
LOW…ssor/diff_tests/metrics/memory/android_systrace_lmk.py16CODE
LOW…r/diff_tests/metrics/memory/android_mem_by_priority.py16CODE
LOWtest/trace_processor/diff_tests/metrics/memory/tests.py17CODE
LOW…ocessor/diff_tests/metrics/memory/android_mem_delta.py16CODE
LOWtest/trace_processor/diff_tests/metrics/camera/tests.py17CODE
LOWtest/trace_processor/diff_tests/metrics/camera/tests.py17CODE
LOWtest/trace_processor/diff_tests/metrics/irq/tests.py16CODE
LOWtest/trace_processor/diff_tests/metrics/irq/tests.py17CODE
LOWtest/trace_processor/diff_tests/metrics/irq/tests.py17CODE
LOWtest/trace_processor/diff_tests/metrics/irq/tests.py17CODE
LOW…st/trace_processor/diff_tests/metrics/webview/tests.py16CODE
LOW…st/trace_processor/diff_tests/metrics/webview/tests.py17CODE
LOW…st/trace_processor/diff_tests/metrics/webview/tests.py17CODE
LOW…_tests/metrics/frame_timeline/frame_timeline_metric.py16CODE
LOW…e_processor/diff_tests/metrics/frame_timeline/tests.py16CODE
501 more matches not shown…
Decorative Section Separators112 hits · 418 pts
SeverityFileLineSnippetContext
MEDIUM⚡ui/src/frontend/index.ts75// Time ───────────────────────────────────────────────────────────────────>COMMENT
MEDIUM⚡ui/src/frontend/index.ts79// ├─► main() ───────────────────────────────────────────────────────┐COMMENT
MEDIUM⚡ui/src/frontend/index.ts82// │ ├─ Start CSS load (async) ──────┐ │COMMENT
MEDIUM⚡ui/src/frontend/index.ts84// │ └─ Register window.onload ───────┼──────────┐ │COMMENT
MEDIUM⚡ui/src/frontend/index.ts90// │ onCssLoaded() ◄──────┘ │ │COMMENT
MEDIUM⚡ui/src/frontend/index.ts100// │ onWindowLoaded() ◄──────┘ │COMMENT
MEDIUM⚡ui/src/frontend/index.ts104// └─────────────────────────────────────────────────────────────────┘COMMENT
MEDIUM…s/dev.perfetto.DataExplorer/query_builder/widgets.scss692// ─── Two-column drag-and-drop layout (Dimensions | Values) ──────────────────COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts24// ┌─────────┐ ┌─────────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts26// │ │ └─────────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts28// └─────────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts29// ┌─────────┐ ┌─────────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts32// │ │ └─────────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts33// └─────────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts36// ┌─────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts40// └─────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts41// ┌─────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts44// ┌─────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts48// └─────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts49// ┌─────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts52// └─────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts67// ┌─────────┐ ┌─────────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts69// │ │ └─────────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts70// │ │ ┌─────────┐ <- This gap has disappearedCOMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts71// └─────────┘ │ D │COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts72// ┌─────────┐ │ │COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts73// │ C │ └─────────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts76// └─────────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts79// ┌─────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts83// └─────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts84// ┌─────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts88// └─────┘COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts89// ┌─────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts92// ┌─────┐COMMENT
MEDIUM⚡ui/src/widgets/grid_layout.ts95// └─────┘COMMENT
MEDIUMtest/trace_processor/diff_tests/stdlib/pixel/tests.py99 # ==============================================================================COMMENT
MEDIUMtest/trace_processor/diff_tests/stdlib/pixel/tests.py101 # ==============================================================================COMMENT
MEDIUMtest/trace_processor/diff_tests/stdlib/pixel/tests.py211 # ==============================================================================COMMENT
MEDIUMtest/trace_processor/diff_tests/stdlib/pixel/tests.py216 # ==============================================================================COMMENT
MEDIUMtest/trace_processor/diff_tests/stdlib/pixel/tests.py277 # ==============================================================================COMMENT
MEDIUMtest/trace_processor/diff_tests/stdlib/pixel/tests.py280 # ==============================================================================COMMENT
MEDIUMtest/trace_processor/diff_tests/stdlib/pixel/tests.py301 # ==============================================================================COMMENT
MEDIUMtest/trace_processor/diff_tests/stdlib/pixel/tests.py305 # ==============================================================================COMMENT
MEDIUM⚡ai/evals/run_evals.py591# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡ai/evals/run_evals.py593# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py73# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py75# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py128# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py139# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py391# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py396# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py448# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py450# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py730# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py732# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py901# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py903# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py1119# ----------------------------------------------------------------------------COMMENT
MEDIUMai/evals/run_evals.py1121# ----------------------------------------------------------------------------COMMENT
MEDIUM⚡…/trace_processor/importers/etm/virtual_address_space.h45// │ │ Mapping 3 │ └──────┬─────┘COMMENT
52 more matches not shown…
Hallucination Indicators7 hits · 95 pts
SeverityFileLineSnippetContext
CRITICAL⚡test/trace_processor/diff_tests/stdlib/slices/tests.py198 4,"monitor contention with owner InputReader (1421) at void com.android.server.power.PowerManagerService.acquiCODE
CRITICAL⚡test/trace_processor/diff_tests/stdlib/slices/tests.py199 4,"monitor contention with owner InputReader (1421) at void com.android.server.power.PowerManagerService.acquiCODE
CRITICAL⚡test/trace_processor/diff_tests/stdlib/slices/tests.py200 5,"monitor contention with owner main (1204) at void com.android.server.am.ActivityManagerService.onWakefulnesCODE
CRITICAL⚡test/trace_processor/diff_tests/stdlib/slices/tests.py201 5,"monitor contention with owner main (1204) at void com.android.server.am.ActivityManagerService.onWakefulnesCODE
CRITICAL⚡test/trace_processor/diff_tests/stdlib/slices/tests.py202 6,"monitor contention with owner main (1204) at void com.android.server.am.ActivityManagerService.onWakefulnesCODE
CRITICALtest/trace_processor/diff_tests/stdlib/android/tests.py459 "boolean com.android.server.am.ActivityManagerService.forceStopPackageLocked(java.lang.String, int, boolean, bCODE
CRITICALtest/trace_processor/diff_tests/stdlib/android/tests.py556 949,"void com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied()","int com.android.serverCODE
Cross-Language Confusion16 hits · 90 pts
SeverityFileLineSnippetContext
HIGHinfra/perfetto.dev/src/gen_stdlib_docs_md.py200 if (element && element.tagName === 'DETAILS') {CODE
HIGHinfra/perfetto.dev/src/gen_stdlib_docs_md.py227 if (hasNoTags || hasMatchingTag) {CODE
HIGHinfra/perfetto.dev/src/gen_stdlib_docs_md.py240 while (sibling && sibling.tagName !== 'H2') {CODE
HIGHinfra/perfetto.dev/src/gen_stdlib_docs_md.py248 h2.style.display = (activeTags.size === 0 || hasVisibleModule) ? '' : 'none';CODE
HIGHtools/gen_grpc_build_gn.py40assert(is_linux && current_cpu == "x64")CODE
HIGHtest/trace_processor/diff_tests/parser/json/tests.py186 "args": { "arg_null": null, "another_int": -5 }CODE
HIGHtest/trace_processor/diff_tests/parser/json/tests.py304 "args": { "arg_null": null, "another_int": -5 }CODE
HIGHtest/trace_processor/diff_tests/parser/json/tests.py1853 "ts": null,CODE
HIGHtest/trace_processor/diff_tests/parser/gecko/tests.py157 "data": [{"flow": 7}, null, {"target": "btn"}, null],CODE
HIGHtest/trace_processor/diff_tests/parser/gecko/tests.py228 "prefix": [null, 0, 1, 1],CODE
HIGH⚡…t/trace_processor/diff_tests/stdlib/intervals/tests.py588 (0, 10, 'A', null),CODE
HIGH⚡…t/trace_processor/diff_tests/stdlib/intervals/tests.py590 (5, 10, null, 1),CODE
HIGH⚡…t/trace_processor/diff_tests/stdlib/intervals/tests.py592 (10, 5, null, 1),CODE
HIGH⚡…t/trace_processor/diff_tests/stdlib/intervals/tests.py593 (15, 5, null, 1)CODE
HIGHpython/test/resolver_unittest.py148 self.assertEqual(_cs_list([1, 2], fn, 'FALSE', sep), '(col = 1 || col = 2)')CODE
HIGHpython/generators/trace_processor_table/serialize.py634 if (value < 0 || value >= row_count()) {{CODE
Structural Annotation Overuse48 hits · 80 pts
SeverityFileLineSnippetContext
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts277 // Step 1: Materialize track metadataCOMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts370 // Step 2: Create shared depth table by joining withCOMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts384 // Step 3: Query materialized table and create tracksCOMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1446 // Step 2: Follow dumpData reference from the class object.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1458 // Step 3: Read format from DumpData's fields.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1472 // Step 4: Get DumpData's references — natives (long[]) and buffers (Object[]).COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1491 // Step 5: Decode natives long[] via JSON.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1505 // Step 6: Get buffers Object[] references — array index → byte[] object ID.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1523 // Step 7: Build nativePtr → buffer object ID map.COMMENT
LOWui/src/plugins/dev.perfetto.TrackEvent/index.ts86 // Step 1: Materialize track metadataCOMMENT
LOWui/src/plugins/dev.perfetto.TrackEvent/index.ts133 // Step 2: Create shared depth table for slice tracks with multiple trackIdsCOMMENT
LOW…ins/dev.perfetto.ProcessSummary/group_summary_track.ts533 // Step 1: Declaratively ensure mipmap table existsCOMMENT
LOW…ins/dev.perfetto.ProcessSummary/group_summary_track.ts545 // Step 2: Declaratively fetch data from the table with buffered boundsCOMMENT
LOW⚡ui/src/plugins/dev.perfetto.CpuFreq/cpu_freq_track.ts397 // Step 1: Declaratively ensure mipmap tables existCOMMENT
LOW⚡ui/src/plugins/dev.perfetto.CpuFreq/cpu_freq_track.ts407 // Step 2: Declaratively fetch data from the tables with buffered boundsCOMMENT
LOW…DataExplorer/query_builder/structured_query_builder.ts789 // Step 1: Apply JOIN if we have columns to joinCOMMENT
LOW…DataExplorer/query_builder/structured_query_builder.ts806 // Step 2: Add computed columns on top if we have anyCOMMENT
LOW⚡ui/src/components/tracks/counter_track.ts647 // Step 0: Call onInit with a constant keyCOMMENT
LOW⚡ui/src/components/tracks/counter_track.ts657 // Step 1: Get the mipmap table (created once per SQL source + options)COMMENT
LOW⚡ui/src/components/tracks/counter_track.ts672 // Step 2: Calculate buffered bounds and fetch counter dataCOMMENT
LOW⚡ui/src/components/tracks/counter_track.ts681 // Step 3: Fetch counter data using QuerySlotCOMMENT
LOWui/src/base/classnames.ts24 // NOTE: This function is optimized for efficiency. Be very careful whenCOMMENT
LOWinclude/perfetto/ext/base/murmur_hash.h187// NOTE: This function intentionally has no else branch for non-builtin types,COMMENT
LOWdocs/visualization/deep-linking-to-perfetto-ui.md50### Step 1: Open ui.perfetto.dev via window.openCOMMENT
LOWdocs/visualization/deep-linking-to-perfetto-ui.md62### Step 2: Wait for the UI to be ready via PING/PONGCOMMENT
LOWdocs/visualization/deep-linking-to-perfetto-ui.md69### Step 3: Post the trace dataCOMMENT
LOWdocs/visualization/embedding-the-ui.md24## Step 1: Add the iframeCOMMENT
LOWdocs/visualization/embedding-the-ui.md42## Step 2: Do the PING/PONG handshakeCOMMENT
LOWdocs/visualization/embedding-the-ui.md70## Step 3: Post the traceCOMMENT
LOW⚡docs/design-docs/pprof-support.md122#### Step 1: String Table ParsingCOMMENT
LOW⚡docs/design-docs/pprof-support.md126#### Step 2: Mapping and Function CreationCOMMENT
LOW⚡docs/design-docs/pprof-support.md133#### Step 3: Location ProcessingCOMMENT
LOW⚡docs/design-docs/pprof-support.md140#### Step 4: Sample ProcessingCOMMENT
LOWdocs/learning-more/multi-machine-tracing.md79### Step 1: Start `traced` on the host, listening on TCPCOMMENT
LOWdocs/learning-more/multi-machine-tracing.md114### Step 2: Start `traced_probes` on the hostCOMMENT
LOWdocs/learning-more/multi-machine-tracing.md131### Step 3: Start `traced_relay` on the guestCOMMENT
LOWdocs/learning-more/multi-machine-tracing.md153### Step 4: Start `traced_probes` on the guestCOMMENT
LOWdocs/learning-more/multi-machine-tracing.md166### Step 5: Record a trace from the hostCOMMENT
LOWdocs/learning-more/multi-machine-tracing.md200### Step 6: Verify both machines are in the traceCOMMENT
LOWdocs/getting-started/periodic-trace-snapshots.md68## Step 1: Start a ring-buffer traceCOMMENT
LOWdocs/getting-started/periodic-trace-snapshots.md206## Step 2: Take a snapshotCOMMENT
LOWdocs/getting-started/periodic-trace-snapshots.md252## Step 3: Pull and analyze a snapshotCOMMENT
LOW…perfetto/workflows/android_memory/heap_profile_diff.md15## Step 1: Load both traces into warm sessions and check available profilesCOMMENT
LOW…perfetto/workflows/android_memory/heap_profile_diff.md40## Step 2: Diff profile totals, functions, and callstacksCOMMENT
LOW…perfetto/workflows/android_memory/heap_profile_diff.md59## Step 3: Inspect callstacks and attribute in codeCOMMENT
LOW…ls/perfetto/workflows/android_memory/heap_dump_diff.md6## Step 1: Load both dumps into warm sessionsCOMMENT
LOW…ls/perfetto/workflows/android_memory/heap_dump_diff.md19## Step 2: Find which classes grewCOMMENT
LOW…ls/perfetto/workflows/android_memory/heap_dump_diff.md42## Step 3: Inspect the classes that grewCOMMENT
Self-Referential Comments23 hits · 66 pts
SeverityFileLineSnippetContext
MEDIUMinfra/git_mirror_bot/mirror_aosp_to_ghub_repo.py65# Create a git repo that mirrors both the upstream and the mirror repos.COMMENT
MEDIUMinfra/ci/worker/worker_entrypoint.sh38# Create the restricted bridge for the sandbox container.COMMENT
MEDIUMinfra/ci/worker/gce-startup-script.sh24# Create a scratch /tmp for checkout + build + cache. We don't care about dataCOMMENT
MEDIUMinfra/luci/recipes/perfetto.py135 # Create the CIPD package definition from the artifact path.COMMENT
MEDIUMtools/gen_grpc_build_gn.py29# This file is generated with the command:COMMENT
MEDIUM…sor/diff_tests/metrics/startup/android_startup_slow.py75# Create an unrelated taskCOMMENT
MEDIUM…rocessor/diff_tests/metrics/startup/android_startup.py61# Create an unrelated taskCOMMENT
MEDIUM…processor/diff_tests/parser/parsing/rss_stat_legacy.py31# Create a kernel "thread", which is a single-thread process child of kthreadd.COMMENT
MEDIUM…_processor/diff_tests/parser/parsing/rss_stat_mm_id.py30# Create a kernel "thread", which is a single-thread process child of kthreadd.COMMENT
MEDIUM…ssor/diff_tests/parser/parsing/rss_stat_mm_id_reuse.py36# Create a new thread which reuses the pid and mm struct.COMMENT
MEDIUM…ssor/diff_tests/parser/parsing/rss_stat_mm_id_clone.py37# Create a newtask event emulating vfork/posix_spawn (i.e. CLONE_VM andCOMMENT
MEDIUM…f_tests/parser/process_tracking/reused_thread_print.py27# Create a parent process which will be forked below.COMMENT
MEDIUM…ests/parser/process_tracking/synth_process_tracking.py27# Create the first process (pid=10) with three threads(tids=10,11,12).COMMENT
MEDIUM…rser/process_tracking/process_parent_pid_tracking_2.py31# Create a multi-threaded process which will be forked below.COMMENT
MEDIUM…ser/process_tracking/process_tracking_short_lived_1.py26# Create a parent process which will be forked below.COMMENT
MEDIUM…ser/process_tracking/process_tracking_short_lived_2.py27# Create a parent process which will be forked below.COMMENT
MEDIUM…tests/parser/process_tracking/process_tracking_exec.py25# Create a parent process which will be forked below.COMMENT
MEDIUM…rser/process_tracking/process_parent_pid_tracking_1.py26# Create a multi-threaded process which will be forked below.COMMENT
MEDIUM…race/protos/perfetto/bigtrace/orchestrator_pb2_grpc.py86# This class is part of an EXPERIMENTAL API.COMMENT
MEDIUMpython/test/api_integrationtest.py372 # Create a directory structure for the package. The root of theCOMMENT
MEDIUM⚡python/test/api_integrationtest.py617 # Create a custom resolver that returns a single trace with known metadataSTRING
MEDIUMpython/test/api_integrationtest.py651 # Create a two-level resolver to test metadata mergingSTRING
MEDIUMpython/generators/trace_processor_table/util.py253 # Create a mapping from the table to a "parsed" version of the table.COMMENT
Deep Nesting44 hits · 40 pts
SeverityFileLineSnippetContext
LOWinfra/luci/recipes.py154CODE
LOWinfra/luci/recipes/perfetto.py239CODE
LOWtools/test_gen_amalgamated.py72CODE
LOWtools/export_power_profiles.py12CODE
LOWtools/run_buildtools_binary.py29CODE
LOWtools/sync_android_to_github.py274CODE
LOWtools/gn_utils.py523CODE
LOWtools/download_changed_screenshots.py47CODE
LOWtools/check_sql_modules.py139CODE
LOWtools/check_sql_modules.py358CODE
LOWtools/diff_test_trace_processor.py56CODE
LOWtools/setup_all_configs.py70CODE
LOWtest/synth_common.py96CODE
LOWgn/standalone/run_java_protoc.py32CODE
LOWgn/standalone/glob.py35CODE
LOWpython/setup.py7CODE
LOWpython/tools/heap_profile.py150CODE
LOWpython/tools/record_android_trace.py243CODE
LOWpython/tools/roll_pnpm.py68CODE
LOWpython/tools/check_imports.py368CODE
LOWpython/perfetto/bigtrace_clickhouse/bigtrace_query.py34CODE
LOWpython/perfetto/bigtrace_clickhouse/bigtrace_query.py66CODE
LOWpython/perfetto/trace_processor/shell.py39CODE
LOWpython/perfetto/trace_processor/http.py49CODE
LOWpython/perfetto/trace_uri_resolver/resolver.py140CODE
LOWpython/perfetto/trace_uri_resolver/resolver.py188CODE
LOWpython/test/api_integrationtest.py700CODE
LOWpython/generators/diff_tests/runner.py83CODE
LOWpython/generators/diff_tests/runner.py146CODE
LOWpython/generators/diff_tests/trace_generator.py185CODE
LOWpython/generators/diff_tests/testing.py187CODE
LOWpython/generators/sql_processing/stdlib_parser.py45CODE
LOWpython/generators/sql_processing/stdlib_tags.py323CODE
LOWpython/generators/sql_processing/docs_parse.py54CODE
LOWpython/generators/sql_processing/docs_parse.py121CODE
LOWpython/generators/sql_processing/docs_parse.py159CODE
LOWai/evals/run_evals.py165CODE
LOWai/evals/run_evals.py941CODE
LOWai/evals/run_evals.py1017CODE
LOWai/evals/run_evals.py1216CODE
LOWai/evals/run_evals.py205CODE
LOWai/evals/run_evals.py278CODE
LOWai/evals/run_evals.py344CODE
LOW…/trace_processor/plugins/wattson/gen_wattson_curves.py119CODE
Empty Error Handlers8 hits · 40 pts
SeverityFileLineSnippetContext
HIGHtools/sync_android_to_github.py356except subprocess.CalledProcessError:CODE
HIGHtools/write_version_header.py73except subprocess.CalledProcessError:CODE
HIGHpython/example.py60except Exception:CODE
HIGHpython/tools/update_permalink.py136except:CODE
HIGHpython/tools/batch_trace_processor_shell.py133except KeyboardInterrupt:CODE
HIGHpython/perfetto/trace_processor/process_tree.py144except (ProcessLookupError, PermissionError):CODE
HIGHai/evals/run_evals.py573except FileNotFoundError:CODE
HIGHai/evals/run_evals.py173except json.JSONDecodeError:CODE
Verbosity Indicators22 hits · 38 pts
SeverityFileLineSnippetContext
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts277 // Step 1: Materialize track metadataCOMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts370 // Step 2: Create shared depth table by joining withCOMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts384 // Step 3: Query materialized table and create tracksCOMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1446 // Step 2: Follow dumpData reference from the class object.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1458 // Step 3: Read format from DumpData's fields.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1472 // Step 4: Get DumpData's references — natives (long[]) and buffers (Object[]).COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1491 // Step 5: Decode natives long[] via JSON.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1505 // Step 6: Get buffers Object[] references — array index → byte[] object ID.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1523 // Step 7: Build nativePtr → buffer object ID map.COMMENT
LOWui/src/plugins/dev.perfetto.TrackEvent/index.ts86 // Step 1: Materialize track metadataCOMMENT
LOWui/src/plugins/dev.perfetto.TrackEvent/index.ts133 // Step 2: Create shared depth table for slice tracks with multiple trackIdsCOMMENT
LOW…ins/dev.perfetto.ProcessSummary/group_summary_track.ts533 // Step 1: Declaratively ensure mipmap table existsCOMMENT
LOW…ins/dev.perfetto.ProcessSummary/group_summary_track.ts545 // Step 2: Declaratively fetch data from the table with buffered boundsCOMMENT
LOW⚡ui/src/plugins/dev.perfetto.CpuFreq/cpu_freq_track.ts397 // Step 1: Declaratively ensure mipmap tables existCOMMENT
LOW⚡ui/src/plugins/dev.perfetto.CpuFreq/cpu_freq_track.ts407 // Step 2: Declaratively fetch data from the tables with buffered boundsCOMMENT
LOW…DataExplorer/query_builder/structured_query_builder.ts789 // Step 1: Apply JOIN if we have columns to joinCOMMENT
LOW…DataExplorer/query_builder/structured_query_builder.ts806 // Step 2: Add computed columns on top if we have anyCOMMENT
LOW⚡ui/src/components/tracks/counter_track.ts647 // Step 0: Call onInit with a constant keyCOMMENT
LOW⚡ui/src/components/tracks/counter_track.ts657 // Step 1: Get the mipmap table (created once per SQL source + options)COMMENT
LOW⚡ui/src/components/tracks/counter_track.ts672 // Step 2: Calculate buffered bounds and fetch counter dataCOMMENT
LOW⚡ui/src/components/tracks/counter_track.ts681 // Step 3: Fetch counter data using QuerySlotCOMMENT
LOWui/src/base/string_utils.ts90// The purpose of this function is to use in simple comparisons, to escapeCOMMENT
Example Usage Blocks24 hits · 36 pts
SeverityFileLineSnippetContext
LOWui/src/trace_processor/engine.ts557 // Example usage:COMMENT
LOWui/src/trace_processor/query_result.ts422 // Example usage:COMMENT
LOWui/src/base/utils.ts24// Example usage:COMMENT
LOWui/src/base/utils.ts96// Example usage:COMMENT
LOWui/src/base/async_memo.ts31 * ## Example usage:COMMENT
LOWtools/repackage_llvm_demangler.sh23# Usage example:COMMENT
LOWtools/print_descriptor.py23# Example usage:COMMENT
LOW…ude/perfetto/tracing/track_event_interned_data_index.h34// Example usageCOMMENT
LOWinclude/perfetto/trace_processor/iterator.h36// Example usage:COMMENT
LOWinclude/perfetto/ext/base/string_utils.h282// Example usage:COMMENT
LOWinclude/perfetto/ext/base/intrusive_tree.h32// Usage example:COMMENT
LOWinclude/perfetto/ext/base/intrusive_list.h32// Usage example:COMMENT
LOWinclude/perfetto/protozero/proto_decoder.h483 // Example usage:COMMENT
LOWinclude/perfetto/public/pb_macros.h32// Example usage:COMMENT
LOWinclude/perfetto/public/pb_decoder.h26// Example usage:COMMENT
LOWsrc/trace_processor/core/util/slab.h38// Usage example:COMMENT
LOWsrc/trace_processor/core/util/flex_vector.h54// Usage example:COMMENT
LOWsrc/trace_processor/util/simple_json_serializer.h47// Usage example:COMMENT
LOWsrc/trace_processor/util/simple_json_serializer.h83// Usage example:COMMENT
LOWsrc/trace_processor/util/simple_json_serializer.h116// Usage example:COMMENT
LOWsrc/trace_processor/util/simple_json_parser.h54// Example usage:COMMENT
LOWsrc/trace_processor/importers/common/metadata_tracker.h36 // Example usage:COMMENT
LOWsrc/trace_processor/importers/common/metadata_tracker.h42 // Example usage:COMMENT
LOWsrc/profiling/common/proc_cmdline.h39// Example usage:COMMENT
Cross-File Repetition7 hits · 35 pts
SeverityFileLineSnippetContext
HIGH…rocessor/diff_tests/parser/smoke/tests_sched_events.py0select ts, cpu, dur, end_state, priority, tid from sched join thread using(utid) order by ts limit 10;STRING
HIGH…/trace_processor/diff_tests/parser/smoke/tests_json.py0select ts, cpu, dur, end_state, priority, tid from sched join thread using(utid) order by ts limit 10;STRING
HIGHtest/trace_processor/diff_tests/parser/smoke/tests.py0select ts, cpu, dur, end_state, priority, tid from sched join thread using(utid) order by ts limit 10;STRING
HIGHtest/trace_processor/diff_tests/parser/fuchsia/tests.py0select ts, cpu, dur, end_state, priority, tid from sched join thread using(utid) order by ts limit 10;STRING
HIGH…diff_tests/parser/android/tests_inputmethod_service.py0include perfetto module android.winscope.inputmethod; select count(*) from __intrinsic_inputmethod_manager_service whereSTRING
HIGH…diff_tests/parser/android/tests_inputmethod_clients.py0include perfetto module android.winscope.inputmethod; select count(*) from __intrinsic_inputmethod_manager_service whereSTRING
HIGH…ts/parser/android/tests_inputmethod_manager_service.py0include perfetto module android.winscope.inputmethod; select count(*) from __intrinsic_inputmethod_manager_service whereSTRING
Modern AI Meta-Vocabulary10 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMui/src/plugins/dev.perfetto.Llm/config.ts25// - agentic models can be used converstaionally and use tools.COMMENT
MEDIUM⚡ui/src/plugins/dev.perfetto.Intelletto/chat_panel.ts52 // model is unavailable or undefined, we fall back to the first agenticCOMMENT
MEDIUM⚡ui/src/plugins/dev.perfetto.Intelletto/chat_panel.ts53 // model. If no agentic models are registered, messages cannot be sent.COMMENT
MEDIUM⚡ui/src/plugins/dev.perfetto.Intelletto/chat_panel.ts61// valididating it actually exists, OR the first agentic model otherwise.COMMENT
MEDIUMui/src/plugins/dev.perfetto.Intelletto/chat_panel.ts72 // agentic models.COMMENT
MEDIUMui/src/plugins/dev.perfetto.Intelletto/chat_panel.ts223 // All models with the 'agentic' role, for the picker dropdown.COMMENT
MEDIUMdocs/getting-started/periodic-trace-snapshots.md86# CPU frequency (event-driven + polling fallback).COMMENT
MEDIUMdocs/getting-started/periodic-trace-snapshots.md151# CPU frequency (event-driven + polling fallback).COMMENT
MEDIUMsrc/android_stats/perfetto_atoms.h114 // kCmd* guardrails.COMMENT
MEDIUMsrc/android_stats/perfetto_atoms.h122 // perfetto_cmd. Removed as perfetto no longer manages stateful guardrailsCOMMENT
Docstring Block Structure6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHpython/perfetto/batch_trace_processor/api.py218Executes the provided SQL statement (returning a single row). The execution happens in parallel across all the tracSTRING
HIGHpython/perfetto/batch_trace_processor/api.py235Executes the provided SQL statement and flattens the result. The execution happens in parallel across all the traceSTRING
HIGHpython/perfetto/batch_trace_processor/api.py275Executes the provided SQL statement across all traces. The execution happens in parallel across all the traces. STRING
HIGHpython/perfetto/batch_trace_processor/api.py293Executes the provided SQL statement and flattens the result. The execution happens in parallel across all the traceSTRING
HIGHpython/perfetto/batch_trace_processor/api.py318Executes the provided SQL statement (returning a single row). The execution happens in parallel across all the tracSTRING
HIGHpython/perfetto/batch_trace_processor/api.py401Executes the provided function and flattens the result into a Polars dataframe. The execution happens in parallSTRING
AI Slop Vocabulary8 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUM…lugins/dev.perfetto.RecordTraceV2/recording_manager.ts196 // detection robust to any setting change without each widget having toCOMMENT
MEDIUMui/src/base/events.ts16// using void). API-wise it's more robust to wrap arguments in an interface,COMMENT
MEDIUM…ests/parser/process_tracking/synth_process_tracking.py30# leverage only the /proc/pid scraper.COMMENT
MEDIUMpython/generators/diff_tests/runner.py236 # code is part of the expectation, not a test harness failure.COMMENT
MEDIUMinclude/perfetto/tracing/traced_proto.h48// TracedProto also provides a seamless integration with writing untypedCOMMENT
MEDIUMinclude/perfetto/tracing/internal/data_source_type.h272 // kernel scheduler. The tracing service is robust against data commitCOMMENT
MEDIUMinclude/perfetto/ext/base/string_utils.h289// - Makes the code more robust in case of snprintf truncations (len() andCOMMENT
MEDIUM⚡ai/evals/run_evals.py592# Transcript analysis (harness-neutral)COMMENT
Excessive Try-Catch Wrapping20 hits · 23 pts
SeverityFileLineSnippetContext
LOWinfra/ci/frontend/main.py280 except Exception as e:CODE
LOWtools/sync_android_to_github.py223 except Exception as e:CODE
LOWtools/sync_android_to_github.py615 except Exception as e:STRING
LOWtools/sync_android_to_github.py634 except Exception as e:STRING
MEDIUMtools/sync_android_to_github.py111def get_original_branch():CODE
LOWtools/check_sql_modules.py350 except Exception as e:CODE
MEDIUMgn/standalone/build_tool_wrapper.py69 print('Error running: "%s" (%s)' % (args.cmd[0], e.strerror))CODE
LOWpython/example.py60 except Exception:CODE
LOWpython/tools/cpu_profile.py72 except Exception as error:CODE
LOWpython/tools/cpu_profile.py401 except Exception as error:CODE
LOWpython/tools/cpu_profile.py458 except Exception as error:CODE
LOWpython/tools/cpu_profile.py478 except Exception as error:CODE
LOWpython/tools/cpu_profile.py500 except Exception as error:CODE
MEDIUMpython/perfetto/tools/download_trace.py131 print('Error: %s' % e, file=sys.stderr)CODE
LOW…perfetto/bigtrace_clickhouse/bigtrace_output_schema.py38 except Exception as e:CODE
LOWpython/perfetto/batch_trace_processor/api.py480 except Exception as ex:CODE
LOWai/evals/run_evals.py844 except Exception as ex: # pylint: disable=broad-exceptCODE
LOWai/evals/run_evals.py880 except Exception as ex: # pylint: disable=broad-exceptCODE
MEDIUM…etto/workflows/android_memory/scripts/cluster_paths.py63 print("Error: Input CSV is empty.")CODE
MEDIUM…workflows/android_memory/scripts/summarize_clusters.py43 print("Error: Invalid or empty clustered CSV.")CODE
Fake / Example Data13 hits · 14 pts
SeverityFileLineSnippetContext
LOW…c/plugins/dev.perfetto.WidgetsPage/demos/popup_demo.ts28 const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOW…c/plugins/dev.perfetto.WidgetsPage/demos/popup_demo.ts28 const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOW…plugins/dev.perfetto.WidgetsPage/demos/callout_demo.ts38 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' +CODE
LOW…plugins/dev.perfetto.WidgetsPage/demos/callout_demo.ts38 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' +CODE
LOW…/dev.perfetto.WidgetsPage/demos/text_paragraph_demo.ts37 text: `Lorem ipsum dolor sit amet, consectetur adipiscingCODE
LOW…/dev.perfetto.WidgetsPage/demos/text_paragraph_demo.ts37 text: `Lorem ipsum dolor sit amet, consectetur adipiscingCODE
LOW…/dev.perfetto.WidgetsPage/demos/text_paragraph_demo.ts58 text: `Lorem ipsum dolor sit amet, consectetur adipiscingCODE
LOW…/dev.perfetto.WidgetsPage/demos/text_paragraph_demo.ts58 text: `Lorem ipsum dolor sit amet, consectetur adipiscingCODE
LOW…dev.perfetto.WidgetsPage/demos/middle_ellipsis_demo.ts35 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',CODE
LOW…dev.perfetto.WidgetsPage/demos/middle_ellipsis_demo.ts35 text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',CODE
LOW…plugins/dev.perfetto.WidgetsPage/demos/tooltip_demo.ts22 const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOW…plugins/dev.perfetto.WidgetsPage/demos/tooltip_demo.ts22 const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmodCODE
LOWui/src/public/omnibox.ts85 * const name = await omnibox.prompt('Enter your name', 'John Doe');COMMENT
Redundant / Tautological Comments8 hits · 12 pts
SeverityFileLineSnippetContext
LOWinfra/perfetto-get.appspot.com/appengine_config.py3# Set PATH to your libraries folder.COMMENT
LOWtools/sync_android_to_github.py424 am_path): # Check if CHERRY_PICK_HEAD is goneCODE
LOWtools/get_llvm_flags.py68 # Print output in GN-compatible formatCOMMENT
LOWtools/check_sql_modules.py422 # Check if from an explicitly included moduleCOMMENT
LOWpython/run_tests.py40 # Set paths to trace_processor_shell and root directory as environmentCOMMENT
LOWpython/tools/check_imports.py326 # Check if there is a dependency declared by plugins, viaCOMMENT
LOWpython/perfetto/bigtrace_clickhouse/bigtrace_query.py94 # Output values directly from the row to be typed byCOMMENT
LOW…ithub/workflows/require-two-reviewers-for-fork-prs.yml75 # Check if user is a member of Google organizationCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHexamples/sdk/CMakeLists.txt23# Define a static library for Perfetto. In this example, we expect the SDKCOMMENT
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHgn/standalone/wasm_typescript_declaration.d.ts79 print(s: string): void;CODE
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtools/sync_android_to_github.py48CODE
LOWtools/pull_ftrace_format_files.py38CODE
LOWpython/perfetto/trace_processor/api.py114CODE
LOW…race/protos/perfetto/bigtrace/orchestrator_pb2_grpc.py96CODE