Skip to content

Ahat plugin prototype v2#5153

Open
zezeozue wants to merge 3 commits intomainfrom
dev/zezeozue/dev/zezeozue/ahat-split
Open

Ahat plugin prototype v2#5153
zezeozue wants to merge 3 commits intomainfrom
dev/zezeozue/dev/zezeozue/ahat-split

Conversation

@zezeozue
Copy link
Member

DO NOT SUBMIT

@zezeozue zezeozue requested a review from a team as a code owner March 16, 2026 23:29
@google-cla
Copy link

google-cla bot commented Mar 16, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions
Copy link

github-actions bot commented Mar 16, 2026

🎨 Perfetto UI Builds

@zezeozue zezeozue force-pushed the dev/zezeozue/dev/zezeozue/ahat-split branch 5 times, most recently from 10cfef5 to e416a81 Compare March 18, 2026 18:41
Copy link
Member

@stevegolton stevegolton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't finished going through everything yet but I noticed you were duplicating a lot of widgets and styles - please use the builtin ones to avoid bloating the bundle and to offer a consistient look and feel.

from dataclasses import dataclass

EXPECTED_ANY_COUNT = 29
EXPECTED_ANY_COUNT = 32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we avoid incrementing this number please? Use unknown if you can

title: 'Current Trace',
summary: 'Actions on the current trace',
},
ahat: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want to have a specifc AHAT section in the sidebar, it's a bit too specific.

If you want subpages, add subtabs or a sub menu within the page itself.


// ─── Theme tokens ────────────────────────────────────────────────────────────

:root {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the builtin theme colors.

});
}

constructor(_trace: Trace) {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused

? m('div', {class: 'ah-card--compact ah-mb-3'}, [
m('span', {class: 'ah-info-grid__label'}, 'Heap: '),
m(
'select',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pleas use the builtin select widget

{class: 'ah-table-wrap'},
m(
'table',
{class: 'ah-table'},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use DataGrid

@zezeozue zezeozue force-pushed the dev/zezeozue/dev/zezeozue/ahat-split branch 5 times, most recently from 866fe3a to d8209f1 Compare March 20, 2026 21:15
Add heap_graph_object_data and heap_graph_primitive tables for HPROF
heap dumps. Add __intrinsic_heap_graph_get_array() SQL function to
retrieve raw primitive array bytes by blob ID.

Remove GenerateArrayValueStrings() which created multi-MB interned
strings for large arrays.

Change-Id: Iba8909797f89aec4cf43c7b0f8c9a68c6efeb615
@zezeozue zezeozue force-pushed the dev/zezeozue/dev/zezeozue/ahat-split branch 2 times, most recently from 37bdaba to 578de7a Compare March 21, 2026 10:56
zezeozue and others added 2 commits March 21, 2026 15:03
Add the com.android.HeapDumpExplorer plugin, inspired by Android's
ahat tool, with navigation, shared components, queries, and all heap
analysis views: overview dashboard, classes, objects, instances,
dominators, bitmap gallery, and strings. Uses DataGrid with
SQLDataSource for efficient sorting and filtering of large datasets.

Change-Id: I28d4f8ef7b3b949e2e1a5fefe3aeefddab2b3c5f
…orer

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Change-Id: I6621cbe4aff8f575cf419759b3e972b6d79745aa
@zezeozue zezeozue force-pushed the dev/zezeozue/dev/zezeozue/ahat-split branch from 578de7a to 0a2820b Compare March 21, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants