Repository Analysis

google/perfetto

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

7.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of google/perfetto, a C++ project with 6,213 GitHub stars. SynthScan v2.0 examined 741,208 lines of code across 4025 source files, recording 5739 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 7.8 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

7.8
Adjusted Score
7.8
Raw Score
100%
Time Factor
2026-07-14
Last Push
6.2K
Stars
C++
Language
741.2K
Lines of Code
4.0K
Files
5.7K
Pattern Hits
2026-07-14
Scan Date
0.01
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 7HIGH 30MEDIUM 154LOW 5548

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 5739 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block3392 hits · 3328 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/flow_types.ts1// Copyright (C) 2024 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 url?: string;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/flow_manager.ts1// Copyright (C) 2020 The Android Open Source ProjectCOMMENT
LOWui/src/core/flow_manager.ts181 // - In the case of aysnc tracks however the mapping isCOMMENT
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.ts21 type SerializedAppState,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
3332 more matches not shown…
Hyper-Verbose Identifiers1403 hits · 894 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.ts112async function defineMaxLayoutDepthSqlFunction(engine: Engine): Promise<void> {CODE
LOWui/src/core/load_trace.ts379function showStartupCommandIssuesDialog(CODE
LOWui/src/core/load_trace.ts457async function computeTraceReliableRangeStart(engine: Engine): Promise<time> {CODE
LOWui/src/core/load_trace.ts691async 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.ts129function 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_converter.ts95export function convertTraceToJsonAndDownload(trace: Blob): Promise<void> {CODE
LOWui/src/frontend/trace_converter.ts103export function convertTraceToSystraceAndDownload(trace: Blob): Promise<void> {CODE
LOWui/src/frontend/trace_converter.ts131export function convertTraceToPprofAndDownload(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.ts620function 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
LOWui/src/plugins/dev.perfetto.LinuxPerf/index.ts601async function selectPerfTracksIfSingleProcess(trace: Trace) {CODE
LOWui/src/plugins/dev.perfetto.LinuxPerf/index.ts615function getSelectedProcessTrackTags(currentSelection: AreaSelection) {CODE
LOWui/src/plugins/dev.perfetto.LinuxPerf/index.ts633function getSelectedThreadTrackTags(currentSelection: AreaSelection) {CODE
LOW…src/plugins/dev.perfetto.CpuProfile/profiling_track.ts188function renderProfilingDetailsPanel(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.ts20export function buildOomeCallstackMetrics(CODE
LOW…dev.perfetto.HeapProfile/heap_profile_details_panel.ts563function flamegraphMetricsForHeapProfile(CODE
LOW…dev.perfetto.HeapProfile/heap_profile_details_panel.ts659function getHeapGraphDuplicateObjectsView(CODE
LOW…dev.perfetto.HeapProfile/heap_profile_details_panel.ts674function getHeapGraphNodeOptionalActions(CODE
LOW…dev.perfetto.HeapProfile/heap_profile_details_panel.ts704function getHeapGraphRootOptionalActions(CODE
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts744export async function fetchShortestPathFromRoot(CODE
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1755export async function getObjectsByFlamegraphSelection(CODE
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts2089export async function enrichFieldsWithReachable(CODE
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts2114export async function enrichArrayElemsWithReachable(CODE
LOW…ns/com.android.HeapDumpExplorer/views/overview_view.ts59function makeDuplicateBitmapSchema(navigate: NavFn): SchemaRegistry {CODE
LOW…ns/com.android.HeapDumpExplorer/views/overview_view.ts146function makeDuplicateStringSchema(navigate: NavFn): SchemaRegistry {CODE
LOW…gins/dev.perfetto.Memscope/sessions/profile_session.ts129function buildProcessProfileConfig(CODE
LOWui/src/plugins/dev.perfetto.Memscope/views/dashboard.ts43function 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.ts68function uriForActiveCPUCountTrack(cpuType?: CPUType): string {CODE
LOWui/src/plugins/com.meta.GpuCompute/details.ts519export async function fetchSelectedKernelMetricData(CODE
LOW…ugins/com.meta.GpuCompute/section/workload_analysis.ts17export function registerWorkloadAnalysisSection(reg: SectionRegistry): void {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…c/plugins/dev.perfetto.Frames/expected_frames_track.ts25export function createExpectedFramesTrack(CODE
1343 more matches not shown…
Unused Imports566 hits · 566 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/git_rename_branch.py5CODE
LOWtools/git_sync_stack.py5CODE
LOWtools/git_sync_stack.py5CODE
LOWtools/git_sync_stack.py6CODE
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/git_update_all.py4CODE
LOWtools/git_update_stack.py4CODE
LOWtools/git_update_stack.py4CODE
LOWtools/git_update_stack.py5CODE
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
506 more matches not shown…
Decorative Section Separators87 hits · 340 pts
SeverityFileLineSnippetContext
MEDIUMui/src/frontend/index.ts75// Time ───────────────────────────────────────────────────────────────────>COMMENT
MEDIUMui/src/frontend/index.ts79// ├─► main() ───────────────────────────────────────────────────────┐COMMENT
MEDIUMui/src/frontend/index.ts82// │ ├─ Start CSS load (async) ──────┐ │COMMENT
MEDIUMui/src/frontend/index.ts84// │ └─ Register window.onload ───────┼──────────┐ │COMMENT
MEDIUMui/src/frontend/index.ts90// │ onCssLoaded() ◄──────┘ │ │COMMENT
MEDIUMui/src/frontend/index.ts100// │ onWindowLoaded() ◄──────┘ │COMMENT
MEDIUMui/src/frontend/index.ts104// └─────────────────────────────────────────────────────────────────┘COMMENT
MEDIUM…s/dev.perfetto.DataExplorer/query_builder/widgets.scss692// ─── Two-column drag-and-drop layout (Dimensions | Values) ──────────────────COMMENT
MEDIUMui/src/widgets/grid_layout.ts24// ┌─────────┐ ┌─────────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts26// │ │ └─────────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts28// └─────────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts29// ┌─────────┐ ┌─────────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts32// │ │ └─────────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts33// └─────────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts36// ┌─────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts40// └─────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts41// ┌─────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts44// ┌─────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts48// └─────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts49// ┌─────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts52// └─────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts67// ┌─────────┐ ┌─────────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts69// │ │ └─────────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts70// │ │ ┌─────────┐ <- This gap has disappearedCOMMENT
MEDIUMui/src/widgets/grid_layout.ts71// └─────────┘ │ D │COMMENT
MEDIUMui/src/widgets/grid_layout.ts72// ┌─────────┐ │ │COMMENT
MEDIUMui/src/widgets/grid_layout.ts73// │ C │ └─────────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts76// └─────────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts79// ┌─────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts83// └─────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts84// ┌─────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts88// └─────┘COMMENT
MEDIUMui/src/widgets/grid_layout.ts89// ┌─────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts92// ┌─────┐COMMENT
MEDIUMui/src/widgets/grid_layout.ts95// └─────┘COMMENT
MEDIUM…/trace_processor/importers/etm/virtual_address_space.h45// │ │ Mapping 3 │ └──────┬─────┘COMMENT
MEDIUM…/trace_processor/importers/etm/virtual_address_space.h49// │ │ └────────────┬────────┘COMMENT
MEDIUM…/trace_processor/importers/etm/virtual_address_space.h51// │ └────────────────┘COMMENT
MEDIUM…/trace_processor/importers/etm/virtual_address_space.h52// └──────────────────────────────────────────────────────→ addressCOMMENT
MEDIUM…/trace_processor/importers/etm/virtual_address_space.h73// │ │ │ │ │ │ ├──────┼─────┘COMMENT
MEDIUM…/trace_processor/importers/etm/virtual_address_space.h77// │ ┊ │ ├────┼───────┼─┴──────┘ ┊COMMENT
MEDIUM…/trace_processor/importers/etm/virtual_address_space.h79// │ ┊ └───┴────┴───────┘ ┊ ┊ ┊COMMENT
MEDIUM…/trace_processor/importers/etm/virtual_address_space.h81// └─┴──┴───┴────┴───────┴─┴──────┴─────┴──────────────→ addressCOMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h107// ── Cflag index constants ───────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h139// ── Named bitfield struct ───────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h176// ── Indexed accessor ────────────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h190// ── Compile-time cflag pinning ──────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h368// ── Position / length / index typedefs ───────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h437// ── Span flags ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h499// ── Custom include ──────────────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h525// ── _with_dialect API gate ────────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h552// ── Token category ────────────────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h570// ── Macro invocation style ───────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h582// ── Types used by the parser vtable ─────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h607// ── Dialect template (static dialect data) ────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h688// ── Configured dialect handle ─────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.h700// ── Dynamic dialect loading ───────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.c5486 // ── Configuration ──────────────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.c5489 // ── Callback registration ──────────────────────────────────────────────COMMENT
MEDIUM…rocessor/perfetto_sql/syntaqlite/syntaqlite_perfetto.c5493 // ── Per-invocation state (set before callback, cleared after) ──────────COMMENT
27 more matches not shown…
Excessive Try-Catch Wrapping58 hits · 100 pts
SeverityFileLineSnippetContext
LOWinfra/ci/frontend/main.py265 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
MEDIUMtools/git_prune_all.py44 print(f"Error: {e}", file=sys.stderr)CODE
LOWtools/git_prune_all.py46 except Exception as e:CODE
LOWtools/git_prune_all.py73 except Exception as e:CODE
LOWtools/git_prune_all.py138 except Exception as e:CODE
MEDIUMtools/git_prune_all.py139 print(f"Error updating config for '{child}': {e}", file=sys.stderr)CODE
MEDIUMtools/git_prune_all.py156 print(f"Error switching to '{new_parent}': {e}", file=sys.stderr)CODE
LOWtools/git_prune_all.py177 except Exception as e:CODE
MEDIUMtools/git_new_branch.py36 print('Error: --current-parent and --parent are mutually exclusive.')CODE
MEDIUMtools/git_new_branch.py45 print('Error: Unable to determine the current branch.')CODE
MEDIUMtools/git_set_parent.py34 print("Error: Cannot determine target branch.", file=sys.stderr)CODE
MEDIUMtools/git_set_parent.py41 print(f"Error: Branch '{parent_branch}' does not exist.", file=sys.stderr)CODE
LOWtools/gen_stdlib_docs_json.py107 except Exception as e:CODE
MEDIUMtools/gen_stdlib_docs_json.py108 print(f"Error generating docs JSON: {e}", file=sys.stderr)CODE
MEDIUMtools/git_rename_branch.py43 print("Error: Cannot determine branch to rename.", file=sys.stderr)CODE
MEDIUMtools/git_rename_branch.py48 print(f"Error: Branch '{old_name}' does not exist.", file=sys.stderr)CODE
MEDIUMtools/git_rename_branch.py51 print(f"Error: New name is the same as the old name.", file=sys.stderr)CODE
MEDIUMtools/git_rename_branch.py54 print(f"Error: Branch '{new_name}' already exists.", file=sys.stderr)CODE
LOWtools/check_sql_modules.py325 except Exception as e:CODE
LOWtools/git_sync_stack.py40 except Exception as e:CODE
MEDIUMtools/git_sync_stack.py77 print('Error: Cannot determine target branch.', file=sys.stderr)CODE
MEDIUMtools/git_sync_stack.py85 print(f"Error: Target branch '{start_branch}' not local.", file=sys.stderr)CODE
MEDIUMtools/git_sync_stack.py94 print(f"Error determining stack order: {e}", file=sys.stderr)CODE
MEDIUMtools/git_sync_stack.py98 print('Error: Could not determine stack branches.', file=sys.stderr)CODE
MEDIUMtools/git_sync_stack.py149 print(f'Error: Pushing {branch} failed.', file=sys.stderr)CODE
LOWtools/git_sync_stack.py184 except Exception as e:CODE
MEDIUMtools/git_sync_stack.py193 print('Error: One or more errors occurred.', file=sys.stderr)CODE
MEDIUMtools/git_goto_child.py33 print("Error: Cannot determine target branch.", file=sys.stderr)CODE
MEDIUMtools/git_update_all.py33 print(f"Error: {e}", file=sys.stderr)CODE
LOWtools/git_update_all.py36 except Exception as e:CODE
LOWtools/git_update_all.py65 except Exception as e:CODE
LOWtools/git_update_all.py86 except Exception as e:CODE
MEDIUMtools/git_update_stack.py41 print("Error: Cannot determine target branch.", file=sys.stderr)CODE
MEDIUMtools/git_update_stack.py57 print(f"Error determining stack order (Cycle?): {e}", file=sys.stderr)CODE
LOWtools/git_update_stack.py87 except Exception as e:CODE
LOWtools/git_update_stack.py108 except Exception as e:CODE
MEDIUMtools/git_goto_parent.py28 print("Error: Cannot determine target branch.", file=sys.stderr)CODE
MEDIUMgn/standalone/build_tool_wrapper.py69 print('Error running: "%s" (%s)' % (args.cmd[0], e.strerror))CODE
LOWpython/example.py60 except Exception:CODE
MEDIUMpython/tools/git_utils.py36 print(f"Error running: {' '.join(cmd)}", file=sys.stderr)CODE
MEDIUMpython/tools/git_utils.py45 print(f"Error: '{executable}' not found.", file=sys.stderr)CODE
LOWpython/tools/git_utils.py47 except Exception as e:CODE
MEDIUMpython/tools/git_utils.py48 print(f"Error running {' '.join(cmd)}: {e}", file=sys.stderr)CODE
LOWpython/tools/git_utils.py70 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
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
Hallucination Indicators7 hits · 95 pts
SeverityFileLineSnippetContext
CRITICALtest/trace_processor/diff_tests/stdlib/slices/tests.py198 4,"monitor contention with owner InputReader (1421) at void com.android.server.power.PowerManagerService.acquiCODE
CRITICALtest/trace_processor/diff_tests/stdlib/slices/tests.py199 4,"monitor contention with owner InputReader (1421) at void com.android.server.power.PowerManagerService.acquiCODE
CRITICALtest/trace_processor/diff_tests/stdlib/slices/tests.py200 5,"monitor contention with owner main (1204) at void com.android.server.am.ActivityManagerService.onWakefulnesCODE
CRITICALtest/trace_processor/diff_tests/stdlib/slices/tests.py201 5,"monitor contention with owner main (1204) at void com.android.server.am.ActivityManagerService.onWakefulnesCODE
CRITICALtest/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.py319 "boolean com.android.server.am.ActivityManagerService.forceStopPackageLocked(java.lang.String, int, boolean, bCODE
CRITICALtest/trace_processor/diff_tests/stdlib/android/tests.py416 949,"void com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied()","int com.android.serverCODE
Cross-Language Confusion15 hits · 85 pts
SeverityFileLineSnippetContext
HIGHinfra/perfetto.dev/src/gen_stdlib_docs_md.py186 if (element && element.tagName === 'DETAILS') {CODE
HIGHinfra/perfetto.dev/src/gen_stdlib_docs_md.py213 if (hasNoTags || hasMatchingTag) {CODE
HIGHinfra/perfetto.dev/src/gen_stdlib_docs_md.py226 while (sibling && sibling.tagName !== 'H2') {CODE
HIGHinfra/perfetto.dev/src/gen_stdlib_docs_md.py234 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
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 Overuse44 hits · 74 pts
SeverityFileLineSnippetContext
LOWui/src/test/chrome_scroll_jank_plugin.test.ts60 // Step 1: Find the ID of the slice.COMMENT
LOWui/src/test/chrome_scroll_jank_plugin.test.ts71 // Step 2: Select the slice.COMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts265 // Step 1: Materialize track metadataCOMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts346 // Step 2: Create shared depth table by joining withCOMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts360 // Step 3: Query materialized table and create tracksCOMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1530 // Step 2: Follow dumpData reference from the class object.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1542 // Step 3: Read format from DumpData's fields.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1556 // Step 4: Get DumpData's references — natives (long[]) and buffers (Object[]).COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1575 // Step 5: Decode natives long[] via JSON.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1587 // Step 6: Get buffers Object[] references — array index → byte[] object ID.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1605 // Step 7: Build nativePtr → buffer object ID map.COMMENT
LOWui/src/plugins/dev.perfetto.TrackEvent/index.ts91 // Step 1: Materialize track metadataCOMMENT
LOWui/src/plugins/dev.perfetto.TrackEvent/index.ts127 // Step 2: Create shared depth table for slice tracks with multiple trackIdsCOMMENT
LOW…ins/dev.perfetto.ProcessSummary/group_summary_track.ts525 // Step 1: Declaratively ensure mipmap table existsCOMMENT
LOW…ins/dev.perfetto.ProcessSummary/group_summary_track.ts537 // Step 2: Declaratively fetch data from the table with buffered boundsCOMMENT
LOWui/src/plugins/dev.perfetto.CpuFreq/cpu_freq_track.ts392 // Step 1: Declaratively ensure mipmap tables existCOMMENT
LOWui/src/plugins/dev.perfetto.CpuFreq/cpu_freq_track.ts402 // Step 2: Declaratively fetch data from the tables with buffered boundsCOMMENT
LOW…DataExplorer/query_builder/structured_query_builder.ts791 // Step 1: Apply JOIN if we have columns to joinCOMMENT
LOW…DataExplorer/query_builder/structured_query_builder.ts808 // Step 2: Add computed columns on top if we have anyCOMMENT
LOWui/src/components/tracks/counter_track.ts649 // Step 0: Call onInit with a constant keyCOMMENT
LOWui/src/components/tracks/counter_track.ts659 // Step 1: Get the mipmap table (created once per SQL source + options)COMMENT
LOWui/src/components/tracks/counter_track.ts674 // Step 2: Calculate buffered bounds and fetch counter dataCOMMENT
LOWui/src/components/tracks/counter_track.ts683 // 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
LOWdocs/design-docs/pprof-support.md122#### Step 1: String Table ParsingCOMMENT
LOWdocs/design-docs/pprof-support.md126#### Step 2: Mapping and Function CreationCOMMENT
LOWdocs/design-docs/pprof-support.md133#### Step 3: Location ProcessingCOMMENT
LOWdocs/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.md205## Step 2: Take a snapshotCOMMENT
LOWdocs/getting-started/periodic-trace-snapshots.md251## Step 3: Pull and analyze a snapshotCOMMENT
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.py322 # Create a directory structure for the package. The root of theCOMMENT
MEDIUMpython/test/api_integrationtest.py567 # Create a custom resolver that returns a single trace with known metadataSTRING
MEDIUMpython/test/api_integrationtest.py601 # 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 · 44 pts
SeverityFileLineSnippetContext
LOWinfra/luci/recipes.py154CODE
LOWinfra/luci/recipes/perfetto.py235CODE
LOWtools/test_gen_amalgamated.py72CODE
LOWtools/export_power_profiles.py12CODE
LOWtools/run_buildtools_binary.py29CODE
LOWtools/sync_android_to_github.py274CODE
LOWtools/git_prune_all.py24CODE
LOWtools/gn_utils.py523CODE
LOWtools/download_changed_screenshots.py58CODE
LOWtools/check_sql_modules.py140CODE
LOWtools/check_sql_modules.py333CODE
LOWtools/check_sql_modules.py585CODE
LOWtools/check_sql_modules.py622CODE
LOWtools/git_sync_stack.py47CODE
LOWtools/git_goto_child.py20CODE
LOWtools/diff_test_trace_processor.py56CODE
LOWtools/git_update_all.py21CODE
LOWtools/git_update_stack.py25CODE
LOWtools/setup_all_configs.py70CODE
LOWtest/synth_common.py95CODE
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/check_imports.py369CODE
LOWpython/tools/git_utils.py296CODE
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.py48CODE
LOWpython/perfetto/trace_uri_resolver/resolver.py140CODE
LOWpython/perfetto/trace_uri_resolver/resolver.py188CODE
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.py64CODE
LOWpython/generators/sql_processing/stdlib_tags.py335CODE
LOWpython/generators/sql_processing/docs_parse.py54CODE
LOWpython/generators/sql_processing/docs_parse.py515CODE
LOWpython/generators/sql_processing/docs_parse.py121CODE
LOWpython/generators/sql_processing/docs_parse.py159CODE
LOW…/trace_processor/plugins/wattson/gen_wattson_curves.py119CODE
Verbosity Indicators24 hits · 40 pts
SeverityFileLineSnippetContext
LOWui/src/test/chrome_scroll_jank_plugin.test.ts60 // Step 1: Find the ID of the slice.COMMENT
LOWui/src/test/chrome_scroll_jank_plugin.test.ts71 // Step 2: Select the slice.COMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts265 // Step 1: Materialize track metadataCOMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts346 // Step 2: Create shared depth table by joining withCOMMENT
LOW…/src/plugins/dev.perfetto.TraceProcessorTrack/index.ts360 // Step 3: Query materialized table and create tracksCOMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1530 // Step 2: Follow dumpData reference from the class object.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1542 // Step 3: Read format from DumpData's fields.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1556 // Step 4: Get DumpData's references — natives (long[]) and buffers (Object[]).COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1575 // Step 5: Decode natives long[] via JSON.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1587 // Step 6: Get buffers Object[] references — array index → byte[] object ID.COMMENT
LOWui/src/plugins/com.android.HeapDumpExplorer/queries.ts1605 // Step 7: Build nativePtr → buffer object ID map.COMMENT
LOWui/src/plugins/dev.perfetto.TrackEvent/index.ts91 // Step 1: Materialize track metadataCOMMENT
LOWui/src/plugins/dev.perfetto.TrackEvent/index.ts127 // Step 2: Create shared depth table for slice tracks with multiple trackIdsCOMMENT
LOW…ins/dev.perfetto.ProcessSummary/group_summary_track.ts525 // Step 1: Declaratively ensure mipmap table existsCOMMENT
LOW…ins/dev.perfetto.ProcessSummary/group_summary_track.ts537 // Step 2: Declaratively fetch data from the table with buffered boundsCOMMENT
LOWui/src/plugins/dev.perfetto.CpuFreq/cpu_freq_track.ts392 // Step 1: Declaratively ensure mipmap tables existCOMMENT
LOWui/src/plugins/dev.perfetto.CpuFreq/cpu_freq_track.ts402 // Step 2: Declaratively fetch data from the tables with buffered boundsCOMMENT
LOW…DataExplorer/query_builder/structured_query_builder.ts791 // Step 1: Apply JOIN if we have columns to joinCOMMENT
LOW…DataExplorer/query_builder/structured_query_builder.ts808 // Step 2: Add computed columns on top if we have anyCOMMENT
LOWui/src/components/tracks/counter_track.ts649 // Step 0: Call onInit with a constant keyCOMMENT
LOWui/src/components/tracks/counter_track.ts659 // Step 1: Get the mipmap table (created once per SQL source + options)COMMENT
LOWui/src/components/tracks/counter_track.ts674 // Step 2: Calculate buffered bounds and fetch counter dataCOMMENT
LOWui/src/components/tracks/counter_track.ts683 // 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
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
Example Usage Blocks23 hits · 34 pts
SeverityFileLineSnippetContext
LOWui/src/trace_processor/engine.ts557 // Example usage:COMMENT
LOWui/src/trace_processor/query_result.ts244 // Example usage:COMMENT
LOWui/src/base/utils.ts24// Example usage:COMMENT
LOWui/src/base/utils.ts96// 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.h462 // Example usage:COMMENT
LOWinclude/perfetto/public/pb_macros.h28// Example usage:COMMENT
LOWinclude/perfetto/public/pb_decoder.h26// Example usage:COMMENT
LOWsrc/trace_processor/core/util/slab.h36// Usage example:COMMENT
LOWsrc/trace_processor/core/util/flex_vector.h52// 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
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
Modern AI Meta-Vocabulary7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMui/src/plugins/dev.perfetto.Llm/config.ts25// - agentic models can be used converstaionally and use tools.COMMENT
MEDIUMui/src/plugins/dev.perfetto.Intelletto/agent.ts105 // 'agentic' role. Looked up per turn so adding/removing a provider betweenCOMMENT
MEDIUMui/src/plugins/dev.perfetto.Intelletto/chat_panel.ts58 // the 'agentic' role (matches Agent.sendMessage).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.h110 // kCmd* guardrails.COMMENT
MEDIUMsrc/android_stats/perfetto_atoms.h118 // perfetto_cmd. Removed as perfetto no longer manages stateful guardrailsCOMMENT
AI Slop Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
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
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.py397 # Check if from an explicitly included moduleCOMMENT
LOWpython/run_tests.py39 # Set paths to trace_processor_shell and root directory as environmentCOMMENT
LOWpython/tools/check_imports.py327 # 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.ts65 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.py109CODE
LOW…race/protos/perfetto/bigtrace/orchestrator_pb2_grpc.py96CODE