@zenfg/inspector 0.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +74 -0
- package/dist/FrameGraphInspector.d.ts +153 -0
- package/dist/FrameGraphInspector.d.ts.map +1 -0
- package/dist/FrameGraphInspector.js +580 -0
- package/dist/FrameGraphInspector.js.map +1 -0
- package/dist/debugCaptureModel.d.ts +166 -0
- package/dist/debugCaptureModel.d.ts.map +1 -0
- package/dist/debugCaptureModel.js +364 -0
- package/dist/debugCaptureModel.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/panelAliasAnalysis.d.ts +20 -0
- package/dist/panelAliasAnalysis.d.ts.map +1 -0
- package/dist/panelAliasAnalysis.js +113 -0
- package/dist/panelAliasAnalysis.js.map +1 -0
- package/dist/panelCytoscapeGraphRenderer.d.ts +71 -0
- package/dist/panelCytoscapeGraphRenderer.d.ts.map +1 -0
- package/dist/panelCytoscapeGraphRenderer.js +559 -0
- package/dist/panelCytoscapeGraphRenderer.js.map +1 -0
- package/dist/panelDiagnosticsView.d.ts +22 -0
- package/dist/panelDiagnosticsView.d.ts.map +1 -0
- package/dist/panelDiagnosticsView.js +123 -0
- package/dist/panelDiagnosticsView.js.map +1 -0
- package/dist/panelDomHelpers.d.ts +26 -0
- package/dist/panelDomHelpers.d.ts.map +1 -0
- package/dist/panelDomHelpers.js +129 -0
- package/dist/panelDomHelpers.js.map +1 -0
- package/dist/panelGraphLayout.d.ts +28 -0
- package/dist/panelGraphLayout.d.ts.map +1 -0
- package/dist/panelGraphLayout.js +223 -0
- package/dist/panelGraphLayout.js.map +1 -0
- package/dist/panelGraphRenderer.d.ts +20 -0
- package/dist/panelGraphRenderer.d.ts.map +1 -0
- package/dist/panelGraphRenderer.js +2 -0
- package/dist/panelGraphRenderer.js.map +1 -0
- package/dist/panelGraphScene.d.ts +98 -0
- package/dist/panelGraphScene.d.ts.map +1 -0
- package/dist/panelGraphScene.js +559 -0
- package/dist/panelGraphScene.js.map +1 -0
- package/dist/panelGraphView.d.ts +9 -0
- package/dist/panelGraphView.d.ts.map +1 -0
- package/dist/panelGraphView.js +88 -0
- package/dist/panelGraphView.js.map +1 -0
- package/dist/panelGraphVisuals.d.ts +38 -0
- package/dist/panelGraphVisuals.d.ts.map +1 -0
- package/dist/panelGraphVisuals.js +330 -0
- package/dist/panelGraphVisuals.js.map +1 -0
- package/dist/panelIcons.d.ts +4 -0
- package/dist/panelIcons.d.ts.map +1 -0
- package/dist/panelIcons.js +43 -0
- package/dist/panelIcons.js.map +1 -0
- package/dist/panelInspectorView.d.ts +33 -0
- package/dist/panelInspectorView.d.ts.map +1 -0
- package/dist/panelInspectorView.js +357 -0
- package/dist/panelInspectorView.js.map +1 -0
- package/dist/panelMemoryView.d.ts +21 -0
- package/dist/panelMemoryView.d.ts.map +1 -0
- package/dist/panelMemoryView.js +134 -0
- package/dist/panelMemoryView.js.map +1 -0
- package/dist/panelPassesView.d.ts +31 -0
- package/dist/panelPassesView.d.ts.map +1 -0
- package/dist/panelPassesView.js +183 -0
- package/dist/panelPassesView.js.map +1 -0
- package/dist/panelResourcesView.d.ts +19 -0
- package/dist/panelResourcesView.d.ts.map +1 -0
- package/dist/panelResourcesView.js +89 -0
- package/dist/panelResourcesView.js.map +1 -0
- package/dist/panelSelection.d.ts +5 -0
- package/dist/panelSelection.d.ts.map +1 -0
- package/dist/panelSelection.js +88 -0
- package/dist/panelSelection.js.map +1 -0
- package/dist/panelTypes.d.ts +40 -0
- package/dist/panelTypes.d.ts.map +1 -0
- package/dist/panelTypes.js +2 -0
- package/dist/panelTypes.js.map +1 -0
- package/dist/panelVisualTheme.d.ts +76 -0
- package/dist/panelVisualTheme.d.ts.map +1 -0
- package/dist/panelVisualTheme.js +39 -0
- package/dist/panelVisualTheme.js.map +1 -0
- package/dist/panelWorkbenchHelpers.d.ts +34 -0
- package/dist/panelWorkbenchHelpers.d.ts.map +1 -0
- package/dist/panelWorkbenchHelpers.js +162 -0
- package/dist/panelWorkbenchHelpers.js.map +1 -0
- package/dist/panelWorkbenchView.d.ts +77 -0
- package/dist/panelWorkbenchView.d.ts.map +1 -0
- package/dist/panelWorkbenchView.js +409 -0
- package/dist/panelWorkbenchView.js.map +1 -0
- package/dist/query.d.ts +11 -0
- package/dist/query.d.ts.map +1 -0
- package/dist/query.js +21 -0
- package/dist/query.js.map +1 -0
- package/dist/styles.d.ts +8 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/styles.js +1073 -0
- package/dist/styles.js.map +1 -0
- package/package.json +29 -0
- package/src/FrameGraphInspector.ts +632 -0
- package/src/debugCaptureModel.ts +583 -0
- package/src/index.ts +21 -0
- package/src/panelAliasAnalysis.ts +164 -0
- package/src/panelCytoscapeGraphRenderer.ts +617 -0
- package/src/panelDiagnosticsView.ts +160 -0
- package/src/panelDomHelpers.ts +151 -0
- package/src/panelGraphLayout.ts +281 -0
- package/src/panelGraphRenderer.ts +21 -0
- package/src/panelGraphScene.ts +787 -0
- package/src/panelGraphView.ts +108 -0
- package/src/panelGraphVisuals.ts +364 -0
- package/src/panelIcons.ts +56 -0
- package/src/panelInspectorView.ts +377 -0
- package/src/panelMemoryView.ts +154 -0
- package/src/panelPassesView.ts +222 -0
- package/src/panelResourcesView.ts +115 -0
- package/src/panelSelection.ts +99 -0
- package/src/panelTypes.ts +28 -0
- package/src/panelVisualTheme.ts +39 -0
- package/src/panelWorkbenchHelpers.ts +216 -0
- package/src/panelWorkbenchView.ts +465 -0
- package/src/query.ts +22 -0
- package/src/styles.ts +1076 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { analyzeSnapshotAliases } from "./panelAliasAnalysis.js";
|
|
2
|
+
import { createMutedText, labelResource } from "./panelDomHelpers.js";
|
|
3
|
+
import { createRelationButton, formatEstimatedBytes, registerSelectable, updateSelectedRows, } from "./panelWorkbenchHelpers.js";
|
|
4
|
+
export class MemoryView {
|
|
5
|
+
callbacks;
|
|
6
|
+
root = document.createElement('section');
|
|
7
|
+
metrics = document.createElement('div');
|
|
8
|
+
scroller = document.createElement('div');
|
|
9
|
+
timeline = document.createElement('div');
|
|
10
|
+
rows = new Map();
|
|
11
|
+
snapshot;
|
|
12
|
+
selected;
|
|
13
|
+
constructor(callbacks, idPrefix) {
|
|
14
|
+
this.callbacks = callbacks;
|
|
15
|
+
this.root.className = 'zenfg-inspector-view zenfg-inspector-memory-view';
|
|
16
|
+
this.root.id = `${idPrefix}-view-memory`;
|
|
17
|
+
this.root.setAttribute('role', 'tabpanel');
|
|
18
|
+
this.metrics.className = 'zenfg-inspector-memory-summary';
|
|
19
|
+
this.scroller.className = 'zenfg-inspector-memory-scroller';
|
|
20
|
+
this.timeline.className = 'zenfg-inspector-memory-timeline';
|
|
21
|
+
this.scroller.appendChild(this.timeline);
|
|
22
|
+
this.root.append(this.metrics, this.scroller);
|
|
23
|
+
}
|
|
24
|
+
setSnapshot(snapshot) {
|
|
25
|
+
this.snapshot = snapshot;
|
|
26
|
+
this.render();
|
|
27
|
+
}
|
|
28
|
+
setSelection(selected) {
|
|
29
|
+
this.selected = selected;
|
|
30
|
+
updateSelectedRows(this.rows, selected);
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
const snapshot = this.snapshot;
|
|
34
|
+
if (!snapshot)
|
|
35
|
+
return;
|
|
36
|
+
const metrics = snapshot.metrics;
|
|
37
|
+
this.metrics.replaceChildren(this.createMetric('Logical capacity', formatEstimatedBytes(metrics.logicalCapacityBytes)), this.createMetric('Physical estimate', formatEstimatedBytes(metrics.physicalEstimatedBytes)), this.createMetric('Alias reuse', formatEstimatedBytes(metrics.aliasReuseBytes)), this.createMetric('Allocations', `${snapshot.physicalAllocations.length} · ${metrics.aliasedAllocationCount} aliased`));
|
|
38
|
+
this.rows.clear();
|
|
39
|
+
this.timeline.replaceChildren();
|
|
40
|
+
const analysis = analyzeSnapshotAliases(snapshot);
|
|
41
|
+
this.timeline.appendChild(this.createAxis(analysis.minUse, analysis.maxUse));
|
|
42
|
+
for (const group of analysis.allocations) {
|
|
43
|
+
const selection = { kind: 'allocation', id: group.allocation.id };
|
|
44
|
+
const header = document.createElement('div');
|
|
45
|
+
header.className = 'zenfg-inspector-memory-allocation';
|
|
46
|
+
header.dataset.kind = group.allocation.kind;
|
|
47
|
+
registerSelectable(this.rows, header, selection, this.callbacks);
|
|
48
|
+
const name = createRelationButton(`Allocation #${group.allocation.id}`, selection, this.callbacks.onSelect);
|
|
49
|
+
const meta = document.createElement('span');
|
|
50
|
+
meta.textContent = `${group.allocation.kind} · class ${group.allocation.compatibilityClassId} · ${formatEstimatedBytes(group.allocation.estimatedByteSize)} · ${group.resources.length > 1 ? `alias ×${group.resources.length}` : 'single'}`;
|
|
51
|
+
header.append(name, meta);
|
|
52
|
+
this.timeline.appendChild(header);
|
|
53
|
+
for (const resource of group.resources) {
|
|
54
|
+
this.timeline.appendChild(this.createResourceRow(resource, analysis.minUse, analysis.maxUse));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const unallocated = snapshot.resources.filter((resource) => (resource.origin === 'transient' && resource.physicalResourceId === undefined));
|
|
58
|
+
if (unallocated.length > 0) {
|
|
59
|
+
const header = document.createElement('div');
|
|
60
|
+
header.className = 'zenfg-inspector-memory-allocation muted';
|
|
61
|
+
header.dataset.kind = 'unallocated';
|
|
62
|
+
header.textContent = 'Unallocated transient resources';
|
|
63
|
+
this.timeline.appendChild(header);
|
|
64
|
+
for (const resource of unallocated) {
|
|
65
|
+
this.timeline.appendChild(this.createResourceRow(resource, analysis.minUse, analysis.maxUse));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (analysis.allocations.length === 0 && unallocated.length === 0) {
|
|
69
|
+
this.timeline.appendChild(createMutedText('No transient resource lifetimes.'));
|
|
70
|
+
}
|
|
71
|
+
updateSelectedRows(this.rows, this.selected);
|
|
72
|
+
}
|
|
73
|
+
createMetric(label, value) {
|
|
74
|
+
const item = document.createElement('div');
|
|
75
|
+
const term = document.createElement('span');
|
|
76
|
+
term.textContent = label;
|
|
77
|
+
const amount = document.createElement('strong');
|
|
78
|
+
amount.textContent = value;
|
|
79
|
+
item.append(term, amount);
|
|
80
|
+
return item;
|
|
81
|
+
}
|
|
82
|
+
createAxis(minUse, maxUse) {
|
|
83
|
+
const axis = document.createElement('div');
|
|
84
|
+
axis.className = 'zenfg-inspector-memory-axis';
|
|
85
|
+
const label = document.createElement('span');
|
|
86
|
+
label.textContent = 'Execution order';
|
|
87
|
+
const track = document.createElement('div');
|
|
88
|
+
track.className = 'zenfg-inspector-memory-axis-track';
|
|
89
|
+
const range = Math.max(1, maxUse - minUse);
|
|
90
|
+
const step = Math.max(1, Math.ceil(range / 5));
|
|
91
|
+
for (let value = minUse; value <= maxUse; value += step) {
|
|
92
|
+
const tick = document.createElement('span');
|
|
93
|
+
tick.style.left = `${((value - minUse) / range) * 100}%`;
|
|
94
|
+
tick.textContent = String(value);
|
|
95
|
+
track.appendChild(tick);
|
|
96
|
+
}
|
|
97
|
+
if (maxUse > minUse && (maxUse - minUse) % step !== 0) {
|
|
98
|
+
const tick = document.createElement('span');
|
|
99
|
+
tick.style.left = '100%';
|
|
100
|
+
tick.textContent = String(maxUse);
|
|
101
|
+
track.appendChild(tick);
|
|
102
|
+
}
|
|
103
|
+
axis.append(label, track);
|
|
104
|
+
return axis;
|
|
105
|
+
}
|
|
106
|
+
createResourceRow(resource, minUse, maxUse) {
|
|
107
|
+
const selection = { kind: 'resource', id: resource.id };
|
|
108
|
+
const row = document.createElement('div');
|
|
109
|
+
row.className = 'zenfg-inspector-memory-resource';
|
|
110
|
+
row.dataset.kind = resource.kind;
|
|
111
|
+
registerSelectable(this.rows, row, selection, this.callbacks);
|
|
112
|
+
const name = createRelationButton(labelResource(resource), selection, this.callbacks.onSelect);
|
|
113
|
+
const range = document.createElement('span');
|
|
114
|
+
range.textContent = resource.lifetime ? `${resource.lifetime.firstUse}–${resource.lifetime.lastUse}` : 'no lifetime';
|
|
115
|
+
const track = document.createElement('div');
|
|
116
|
+
track.className = 'zenfg-inspector-memory-track';
|
|
117
|
+
const bar = document.createElement('span');
|
|
118
|
+
bar.className = `zenfg-inspector-memory-bar ${resource.kind}`;
|
|
119
|
+
if (resource.lifetime) {
|
|
120
|
+
const slots = Math.max(1, maxUse - minUse + 1);
|
|
121
|
+
bar.style.left = `${((resource.lifetime.firstUse - minUse) / slots) * 100}%`;
|
|
122
|
+
bar.style.width = `${((resource.lifetime.lastUse - resource.lifetime.firstUse + 1) / slots) * 100}%`;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
bar.classList.add('empty');
|
|
126
|
+
}
|
|
127
|
+
track.appendChild(bar);
|
|
128
|
+
const size = document.createElement('span');
|
|
129
|
+
size.textContent = formatEstimatedBytes(resource.estimatedByteSize);
|
|
130
|
+
row.append(name, range, track, size);
|
|
131
|
+
return row;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=panelMemoryView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panelMemoryView.js","sourceRoot":"","sources":["../src/panelMemoryView.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EACN,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAElB,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,OAAO,UAAU;IASO;IARpB,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACjC,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACxC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACzC,QAAQ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C,QAAQ,CAAC,QAAQ,CAAC,QAAQ,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;YAC7E,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,QAAQ,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;QACtG,CAAC;aAAM,CAAC;YACP,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAC5B,CAAC;QACD,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACvB,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,WAAW,GAAG,oBAAoB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC;QACpE,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;QACrC,OAAO,GAAG,CAAC;IACZ,CAAC;CACD","sourcesContent":["import type { FrameGraphDebugResource, FrameGraphDebugViewModel } from './debugCaptureModel.ts';\nimport { analyzeSnapshotAliases } from './panelAliasAnalysis.ts';\nimport { createMutedText, labelResource } from './panelDomHelpers.ts';\nimport type { Selection } from './panelTypes.ts';\nimport {\n\tcreateRelationButton,\n\tformatEstimatedBytes,\n\tregisterSelectable,\n\ttype WorkbenchCallbacks,\n\tupdateSelectedRows,\n} from './panelWorkbenchHelpers.ts';\n\nexport class MemoryView {\n\treadonly root = document.createElement('section');\n\tprivate readonly metrics = document.createElement('div');\n\tprivate readonly scroller = document.createElement('div');\n\tprivate readonly timeline = document.createElement('div');\n\tprivate readonly rows = new Map<string, HTMLElement[]>();\n\tprivate snapshot: FrameGraphDebugViewModel | undefined;\n\tprivate selected: Selection | undefined;\n\n\tconstructor(private readonly callbacks: WorkbenchCallbacks, idPrefix: string) {\n\t\tthis.root.className = 'zenfg-inspector-view zenfg-inspector-memory-view';\n\t\tthis.root.id = `${idPrefix}-view-memory`;\n\t\tthis.root.setAttribute('role', 'tabpanel');\n\t\tthis.metrics.className = 'zenfg-inspector-memory-summary';\n\t\tthis.scroller.className = 'zenfg-inspector-memory-scroller';\n\t\tthis.timeline.className = 'zenfg-inspector-memory-timeline';\n\t\tthis.scroller.appendChild(this.timeline);\n\t\tthis.root.append(this.metrics, this.scroller);\n\t}\n\n\tsetSnapshot(snapshot: FrameGraphDebugViewModel): void {\n\t\tthis.snapshot = snapshot;\n\t\tthis.render();\n\t}\n\n\tsetSelection(selected: Selection | undefined): void {\n\t\tthis.selected = selected;\n\t\tupdateSelectedRows(this.rows, selected);\n\t}\n\n\tprivate render(): void {\n\t\tconst snapshot = this.snapshot;\n\t\tif (!snapshot) return;\n\t\tconst metrics = snapshot.metrics;\n\t\tthis.metrics.replaceChildren(\n\t\t\tthis.createMetric('Logical capacity', formatEstimatedBytes(metrics.logicalCapacityBytes)),\n\t\t\tthis.createMetric('Physical estimate', formatEstimatedBytes(metrics.physicalEstimatedBytes)),\n\t\t\tthis.createMetric('Alias reuse', formatEstimatedBytes(metrics.aliasReuseBytes)),\n\t\t\tthis.createMetric('Allocations', `${snapshot.physicalAllocations.length} · ${metrics.aliasedAllocationCount} aliased`),\n\t\t);\n\t\tthis.rows.clear();\n\t\tthis.timeline.replaceChildren();\n\t\tconst analysis = analyzeSnapshotAliases(snapshot);\n\t\tthis.timeline.appendChild(this.createAxis(analysis.minUse, analysis.maxUse));\n\n\t\tfor (const group of analysis.allocations) {\n\t\t\tconst selection: Selection = { kind: 'allocation', id: group.allocation.id };\n\t\t\tconst header = document.createElement('div');\n\t\t\theader.className = 'zenfg-inspector-memory-allocation';\n\t\t\theader.dataset.kind = group.allocation.kind;\n\t\t\tregisterSelectable(this.rows, header, selection, this.callbacks);\n\t\t\tconst name = createRelationButton(`Allocation #${group.allocation.id}`, selection, this.callbacks.onSelect);\n\t\t\tconst meta = document.createElement('span');\n\t\t\tmeta.textContent = `${group.allocation.kind} · class ${group.allocation.compatibilityClassId} · ${formatEstimatedBytes(group.allocation.estimatedByteSize)} · ${group.resources.length > 1 ? `alias ×${group.resources.length}` : 'single'}`;\n\t\t\theader.append(name, meta);\n\t\t\tthis.timeline.appendChild(header);\n\t\t\tfor (const resource of group.resources) {\n\t\t\t\tthis.timeline.appendChild(this.createResourceRow(resource, analysis.minUse, analysis.maxUse));\n\t\t\t}\n\t\t}\n\n\t\tconst unallocated = snapshot.resources.filter((resource) => (\n\t\t\tresource.origin === 'transient' && resource.physicalResourceId === undefined\n\t\t));\n\t\tif (unallocated.length > 0) {\n\t\t\tconst header = document.createElement('div');\n\t\t\theader.className = 'zenfg-inspector-memory-allocation muted';\n\t\t\theader.dataset.kind = 'unallocated';\n\t\t\theader.textContent = 'Unallocated transient resources';\n\t\t\tthis.timeline.appendChild(header);\n\t\t\tfor (const resource of unallocated) {\n\t\t\t\tthis.timeline.appendChild(this.createResourceRow(resource, analysis.minUse, analysis.maxUse));\n\t\t\t}\n\t\t}\n\t\tif (analysis.allocations.length === 0 && unallocated.length === 0) {\n\t\t\tthis.timeline.appendChild(createMutedText('No transient resource lifetimes.'));\n\t\t}\n\t\tupdateSelectedRows(this.rows, this.selected);\n\t}\n\n\tprivate createMetric(label: string, value: string): HTMLElement {\n\t\tconst item = document.createElement('div');\n\t\tconst term = document.createElement('span');\n\t\tterm.textContent = label;\n\t\tconst amount = document.createElement('strong');\n\t\tamount.textContent = value;\n\t\titem.append(term, amount);\n\t\treturn item;\n\t}\n\n\tprivate createAxis(minUse: number, maxUse: number): HTMLElement {\n\t\tconst axis = document.createElement('div');\n\t\taxis.className = 'zenfg-inspector-memory-axis';\n\t\tconst label = document.createElement('span');\n\t\tlabel.textContent = 'Execution order';\n\t\tconst track = document.createElement('div');\n\t\ttrack.className = 'zenfg-inspector-memory-axis-track';\n\t\tconst range = Math.max(1, maxUse - minUse);\n\t\tconst step = Math.max(1, Math.ceil(range / 5));\n\t\tfor (let value = minUse; value <= maxUse; value += step) {\n\t\t\tconst tick = document.createElement('span');\n\t\t\ttick.style.left = `${((value - minUse) / range) * 100}%`;\n\t\t\ttick.textContent = String(value);\n\t\t\ttrack.appendChild(tick);\n\t\t}\n\t\tif (maxUse > minUse && (maxUse - minUse) % step !== 0) {\n\t\t\tconst tick = document.createElement('span');\n\t\t\ttick.style.left = '100%';\n\t\t\ttick.textContent = String(maxUse);\n\t\t\ttrack.appendChild(tick);\n\t\t}\n\t\taxis.append(label, track);\n\t\treturn axis;\n\t}\n\n\tprivate createResourceRow(resource: FrameGraphDebugResource, minUse: number, maxUse: number): HTMLElement {\n\t\tconst selection: Selection = { kind: 'resource', id: resource.id };\n\t\tconst row = document.createElement('div');\n\t\trow.className = 'zenfg-inspector-memory-resource';\n\t\trow.dataset.kind = resource.kind;\r\n\t\tregisterSelectable(this.rows, row, selection, this.callbacks);\n\t\tconst name = createRelationButton(labelResource(resource), selection, this.callbacks.onSelect);\n\t\tconst range = document.createElement('span');\n\t\trange.textContent = resource.lifetime ? `${resource.lifetime.firstUse}–${resource.lifetime.lastUse}` : 'no lifetime';\n\t\tconst track = document.createElement('div');\n\t\ttrack.className = 'zenfg-inspector-memory-track';\n\t\tconst bar = document.createElement('span');\n\t\tbar.className = `zenfg-inspector-memory-bar ${resource.kind}`;\n\t\tif (resource.lifetime) {\n\t\t\tconst slots = Math.max(1, maxUse - minUse + 1);\n\t\t\tbar.style.left = `${((resource.lifetime.firstUse - minUse) / slots) * 100}%`;\n\t\t\tbar.style.width = `${((resource.lifetime.lastUse - resource.lifetime.firstUse + 1) / slots) * 100}%`;\n\t\t} else {\n\t\t\tbar.classList.add('empty');\n\t\t}\n\t\ttrack.appendChild(bar);\n\t\tconst size = document.createElement('span');\n\t\tsize.textContent = formatEstimatedBytes(resource.estimatedByteSize);\n\t\trow.append(name, range, track, size);\n\t\treturn row;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { FrameGraphDebugViewModel } from './debugCaptureModel.ts';
|
|
2
|
+
import type { Selection } from './panelTypes.ts';
|
|
3
|
+
import { type WorkbenchCallbacks } from './panelWorkbenchHelpers.ts';
|
|
4
|
+
export declare class PassesView {
|
|
5
|
+
private readonly callbacks;
|
|
6
|
+
readonly root: HTMLElement;
|
|
7
|
+
private readonly toolbar;
|
|
8
|
+
private readonly tabList;
|
|
9
|
+
private readonly listButton;
|
|
10
|
+
private readonly groupsButton;
|
|
11
|
+
private readonly listPane;
|
|
12
|
+
private readonly groupsPane;
|
|
13
|
+
private readonly listTable;
|
|
14
|
+
private readonly groupsTable;
|
|
15
|
+
private readonly rows;
|
|
16
|
+
private snapshot;
|
|
17
|
+
private selected;
|
|
18
|
+
private subview;
|
|
19
|
+
private search;
|
|
20
|
+
private kind;
|
|
21
|
+
private sort;
|
|
22
|
+
constructor(callbacks: WorkbenchCallbacks, idPrefix: string);
|
|
23
|
+
setSnapshot(snapshot: FrameGraphDebugViewModel): void;
|
|
24
|
+
setSelection(selected: Selection | undefined): void;
|
|
25
|
+
private createSubviewButton;
|
|
26
|
+
private updateSubview;
|
|
27
|
+
private renderRows;
|
|
28
|
+
private matchesNode;
|
|
29
|
+
private compareNodes;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=panelPassesView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panelPassesView.d.ts","sourceRoot":"","sources":["../src/panelPassesView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAuB,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAE5F,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAUN,KAAK,kBAAkB,EAEvB,MAAM,4BAA4B,CAAC;AAIpC,qBAAa,UAAU;IAmCV,OAAO,CAAC,QAAQ,CAAC,SAAS;IAlCtC,QAAQ,CAAC,IAAI,cAAqC;IAClD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiD;IACzE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiC;IACzD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiD;IAC5E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAyD;IACtF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiC;IAC1D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiC;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CASvB;IACH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAQzB;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoC;IACzD,OAAO,CAAC,QAAQ,CAAuC;IACvD,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,IAAI,CAAqB;gBAEJ,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM;IAsD5E,WAAW,CAAC,QAAQ,EAAE,wBAAwB,GAAG,IAAI;IAQrD,YAAY,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAKnD,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,UAAU;IA+DlB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,YAAY;CAQpB"}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { createCell, formatGpuDuration, labelNode } from "./panelDomHelpers.js";
|
|
2
|
+
import { createEmptyTableRow, createKindCell, createFilterSelect, createSearchInput, createSelectionCell, createTableScroller, createViewToolbar, groupPath, registerSelectable, updateSelectedRows, } from "./panelWorkbenchHelpers.js";
|
|
3
|
+
export class PassesView {
|
|
4
|
+
callbacks;
|
|
5
|
+
root = document.createElement('section');
|
|
6
|
+
toolbar = createViewToolbar('Pass filters and sorting');
|
|
7
|
+
tabList = document.createElement('div');
|
|
8
|
+
listButton = this.createSubviewButton('list', 'Pass List');
|
|
9
|
+
groupsButton = this.createSubviewButton('groups', 'Group Hierarchy');
|
|
10
|
+
listPane = document.createElement('div');
|
|
11
|
+
groupsPane = document.createElement('div');
|
|
12
|
+
listTable = createTableScroller([
|
|
13
|
+
{ label: 'Order', column: 'numeric' },
|
|
14
|
+
{ label: 'Segment', column: 'code' },
|
|
15
|
+
{ label: 'Label' },
|
|
16
|
+
{ label: 'Group' },
|
|
17
|
+
{ label: 'Kind', column: 'kind' },
|
|
18
|
+
{ label: 'GPU (ms)', column: 'numeric' },
|
|
19
|
+
{ label: 'Reads', column: 'numeric' },
|
|
20
|
+
{ label: 'Writes', column: 'numeric' },
|
|
21
|
+
]);
|
|
22
|
+
groupsTable = createTableScroller([
|
|
23
|
+
{ label: '' },
|
|
24
|
+
{ label: 'Group' },
|
|
25
|
+
{ label: 'Retained', column: 'numeric' },
|
|
26
|
+
{ label: 'Culled', column: 'numeric' },
|
|
27
|
+
{ label: 'GPU work', column: 'numeric' },
|
|
28
|
+
{ label: 'Inputs', column: 'numeric' },
|
|
29
|
+
{ label: 'Outputs', column: 'numeric' },
|
|
30
|
+
]);
|
|
31
|
+
rows = new Map();
|
|
32
|
+
snapshot;
|
|
33
|
+
selected;
|
|
34
|
+
subview = 'list';
|
|
35
|
+
search = '';
|
|
36
|
+
kind = 'all';
|
|
37
|
+
sort = 'order';
|
|
38
|
+
constructor(callbacks, idPrefix) {
|
|
39
|
+
this.callbacks = callbacks;
|
|
40
|
+
this.root.className = 'zenfg-inspector-view zenfg-inspector-passes-view';
|
|
41
|
+
this.root.id = `${idPrefix}-view-passes`;
|
|
42
|
+
this.root.setAttribute('role', 'tabpanel');
|
|
43
|
+
this.tabList.className = 'zenfg-inspector-subtabs';
|
|
44
|
+
this.tabList.setAttribute('role', 'tablist');
|
|
45
|
+
this.tabList.setAttribute('aria-label', 'Pass views');
|
|
46
|
+
this.tabList.append(this.listButton, this.groupsButton);
|
|
47
|
+
const search = createSearchInput('Search pass or group', this.search, (value) => {
|
|
48
|
+
this.search = value.trim().toLocaleLowerCase();
|
|
49
|
+
this.renderRows();
|
|
50
|
+
});
|
|
51
|
+
const kind = createFilterSelect('Pass kind', this.kind, [
|
|
52
|
+
['all', 'All kinds'],
|
|
53
|
+
['render', 'Render'],
|
|
54
|
+
['compute', 'Compute'],
|
|
55
|
+
['copy', 'Copy'],
|
|
56
|
+
['clear-buffer', 'Clear Buffer'],
|
|
57
|
+
['command', 'Command'],
|
|
58
|
+
['external-submission', 'External'],
|
|
59
|
+
], (value) => {
|
|
60
|
+
this.kind = value;
|
|
61
|
+
this.renderRows();
|
|
62
|
+
});
|
|
63
|
+
const sort = createFilterSelect('Sort passes', this.sort, [
|
|
64
|
+
['order', 'Order'],
|
|
65
|
+
['label', 'Label'],
|
|
66
|
+
['kind', 'Kind'],
|
|
67
|
+
['gpu', 'GPU'],
|
|
68
|
+
], (value) => {
|
|
69
|
+
this.sort = value;
|
|
70
|
+
this.renderRows();
|
|
71
|
+
});
|
|
72
|
+
this.toolbar.append(search, kind, sort);
|
|
73
|
+
this.listButton.id = `${idPrefix}-list-subtab`;
|
|
74
|
+
this.listButton.setAttribute('aria-controls', `${idPrefix}-pass-list-panel`);
|
|
75
|
+
this.groupsButton.id = `${idPrefix}-groups-subtab`;
|
|
76
|
+
this.groupsButton.setAttribute('aria-controls', `${idPrefix}-group-list-panel`);
|
|
77
|
+
this.listPane.id = `${idPrefix}-pass-list-panel`;
|
|
78
|
+
this.listPane.className = 'zenfg-inspector-subview';
|
|
79
|
+
this.listPane.setAttribute('role', 'tabpanel');
|
|
80
|
+
this.listPane.setAttribute('aria-labelledby', this.listButton.id);
|
|
81
|
+
this.listPane.appendChild(this.listTable.scroller);
|
|
82
|
+
this.groupsPane.id = `${idPrefix}-group-list-panel`;
|
|
83
|
+
this.groupsPane.className = 'zenfg-inspector-subview';
|
|
84
|
+
this.groupsPane.setAttribute('role', 'tabpanel');
|
|
85
|
+
this.groupsPane.setAttribute('aria-labelledby', this.groupsButton.id);
|
|
86
|
+
this.groupsPane.appendChild(this.groupsTable.scroller);
|
|
87
|
+
this.root.append(this.tabList, this.toolbar, this.listPane, this.groupsPane);
|
|
88
|
+
this.updateSubview();
|
|
89
|
+
}
|
|
90
|
+
setSnapshot(snapshot) {
|
|
91
|
+
this.snapshot = snapshot;
|
|
92
|
+
if (snapshot.debugGroups.length === 0 && this.subview === 'groups')
|
|
93
|
+
this.subview = 'list';
|
|
94
|
+
this.groupsButton.disabled = snapshot.debugGroups.length === 0;
|
|
95
|
+
this.renderRows();
|
|
96
|
+
this.updateSubview();
|
|
97
|
+
}
|
|
98
|
+
setSelection(selected) {
|
|
99
|
+
this.selected = selected;
|
|
100
|
+
updateSelectedRows(this.rows, selected);
|
|
101
|
+
}
|
|
102
|
+
createSubviewButton(subview, label) {
|
|
103
|
+
const button = document.createElement('button');
|
|
104
|
+
button.type = 'button';
|
|
105
|
+
button.textContent = label;
|
|
106
|
+
button.setAttribute('role', 'tab');
|
|
107
|
+
button.addEventListener('click', () => {
|
|
108
|
+
this.subview = subview;
|
|
109
|
+
this.updateSubview();
|
|
110
|
+
});
|
|
111
|
+
return button;
|
|
112
|
+
}
|
|
113
|
+
updateSubview() {
|
|
114
|
+
const listActive = this.subview === 'list';
|
|
115
|
+
this.listButton.setAttribute('aria-selected', listActive ? 'true' : 'false');
|
|
116
|
+
this.groupsButton.setAttribute('aria-selected', listActive ? 'false' : 'true');
|
|
117
|
+
this.listButton.classList.toggle('active', listActive);
|
|
118
|
+
this.groupsButton.classList.toggle('active', !listActive);
|
|
119
|
+
this.listPane.hidden = !listActive;
|
|
120
|
+
this.groupsPane.hidden = listActive;
|
|
121
|
+
}
|
|
122
|
+
renderRows() {
|
|
123
|
+
const snapshot = this.snapshot;
|
|
124
|
+
if (!snapshot)
|
|
125
|
+
return;
|
|
126
|
+
this.rows.clear();
|
|
127
|
+
this.listTable.body.replaceChildren();
|
|
128
|
+
this.groupsTable.body.replaceChildren();
|
|
129
|
+
const passes = snapshot.nodes.filter((node) => this.matchesNode(snapshot, node));
|
|
130
|
+
passes.sort((a, b) => this.compareNodes(a, b));
|
|
131
|
+
for (const node of passes) {
|
|
132
|
+
const selection = { kind: 'node', id: node.id };
|
|
133
|
+
const row = document.createElement('tr');
|
|
134
|
+
registerSelectable(this.rows, row, selection, this.callbacks);
|
|
135
|
+
const segment = snapshot.segmentByNodeId.get(node.id);
|
|
136
|
+
row.append(createCell(String(node.order), { column: 'numeric' }), createCell(segment ? `${segment.index}:${segment.kind === 'frame-graph' ? 'FG' : 'opaque'}` : '-', { column: 'code' }), createSelectionCell(labelNode(node), selection, this.callbacks), createCell(groupPath(snapshot, node.debugGroupId), { column: 'code' }), createKindCell(node.kind), createCell(node.kind === 'external-submission' ? 'opaque' : formatGpuDuration(node), { column: 'numeric' }), createCell(String(node.reads.length), { column: 'numeric' }), createCell(String(node.writes.length), { column: 'numeric' }));
|
|
137
|
+
this.listTable.body.appendChild(row);
|
|
138
|
+
}
|
|
139
|
+
if (passes.length === 0)
|
|
140
|
+
this.listTable.body.appendChild(createEmptyTableRow(8, 'No passes match the current filters.'));
|
|
141
|
+
const query = this.search;
|
|
142
|
+
for (const group of snapshot.debugGroups.filter((candidate) => (query.length === 0 || candidate.path.join(' / ').toLocaleLowerCase().includes(query)))) {
|
|
143
|
+
const selection = { kind: 'group', pathKey: group.pathKey };
|
|
144
|
+
const row = document.createElement('tr');
|
|
145
|
+
registerSelectable(this.rows, row, selection, this.callbacks);
|
|
146
|
+
const toggleCell = document.createElement('td');
|
|
147
|
+
const toggle = document.createElement('button');
|
|
148
|
+
toggle.type = 'button';
|
|
149
|
+
toggle.className = 'zenfg-inspector-group-toggle';
|
|
150
|
+
const expanded = this.callbacks.isGroupExpanded(group.pathKey);
|
|
151
|
+
toggle.textContent = expanded ? '▾' : '▸';
|
|
152
|
+
toggle.title = 'Toggle group in Graph view';
|
|
153
|
+
toggle.setAttribute('aria-label', `${expanded ? 'Collapse' : 'Expand'} group ${group.path.join(' / ')}`);
|
|
154
|
+
toggle.addEventListener('click', () => this.callbacks.onGroupToggle(group.pathKey));
|
|
155
|
+
toggleCell.appendChild(toggle);
|
|
156
|
+
const labelCell = createSelectionCell(group.label, selection, this.callbacks);
|
|
157
|
+
labelCell.style.paddingLeft = `${8 + group.depth * 18}px`;
|
|
158
|
+
const summary = group.summary;
|
|
159
|
+
row.append(toggleCell, labelCell, createCell(String(summary.retainedNodeCount), { column: 'numeric' }), createCell(String(summary.culledNodeCount), { column: 'numeric' }), createCell(summary.timedNodeCount === 0 ? '-' : (summary.gpuWorkDurationMicros / 1000).toFixed(3), { column: 'numeric' }), createCell(String(summary.inputResources.length), { column: 'numeric' }), createCell(String(summary.outputResources.length), { column: 'numeric' }));
|
|
160
|
+
this.groupsTable.body.appendChild(row);
|
|
161
|
+
}
|
|
162
|
+
if (this.groupsTable.body.childElementCount === 0)
|
|
163
|
+
this.groupsTable.body.appendChild(createEmptyTableRow(7, 'No diagnostic groups.'));
|
|
164
|
+
updateSelectedRows(this.rows, this.selected);
|
|
165
|
+
}
|
|
166
|
+
matchesNode(snapshot, node) {
|
|
167
|
+
if (this.kind !== 'all' && node.kind !== this.kind)
|
|
168
|
+
return false;
|
|
169
|
+
if (this.search.length === 0)
|
|
170
|
+
return true;
|
|
171
|
+
const haystack = `${labelNode(node)} ${groupPath(snapshot, node.debugGroupId)}`.toLocaleLowerCase();
|
|
172
|
+
return haystack.includes(this.search);
|
|
173
|
+
}
|
|
174
|
+
compareNodes(a, b) {
|
|
175
|
+
switch (this.sort) {
|
|
176
|
+
case 'label': return labelNode(a).localeCompare(labelNode(b)) || a.order - b.order;
|
|
177
|
+
case 'kind': return a.kind.localeCompare(b.kind) || a.order - b.order;
|
|
178
|
+
case 'gpu': return (b.gpuDurationMicros ?? -1) - (a.gpuDurationMicros ?? -1) || a.order - b.order;
|
|
179
|
+
case 'order': return a.order - b.order;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=panelPassesView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panelPassesView.js","sourceRoot":"","sources":["../src/panelPassesView.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EACN,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAElB,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAIpC,MAAM,OAAO,UAAU;IAmCO;IAlCpB,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACjC,OAAO,GAAG,iBAAiB,CAAC,0BAA0B,CAAC,CAAC;IACxD,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACxC,UAAU,GAAG,IAAI,CAAC,mBAAmB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC3D,YAAY,GAAG,IAAI,CAAC,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACrE,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACzC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3C,SAAS,GAAG,mBAAmB,CAAC;QAChD,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE;QACrC,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE;QACpC,EAAE,KAAK,EAAE,OAAO,EAAE;QAClB,EAAE,KAAK,EAAE,OAAO,EAAE;QAClB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;QACjC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE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AK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,iBAAiB,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,iBAAiB,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;YAClG,KAAK,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;QACxC,CAAC;IACF,CAAC;CACD","sourcesContent":["import type { FrameGraphDebugNode, FrameGraphDebugViewModel } from './debugCaptureModel.ts';\nimport { createCell, formatGpuDuration, labelNode } from './panelDomHelpers.ts';\nimport type { PassesSubview, Selection } from './panelTypes.ts';\nimport {\n\tcreateEmptyTableRow,\n\tcreateKindCell,\n\tcreateFilterSelect,\n\tcreateSearchInput,\n\tcreateSelectionCell,\n\tcreateTableScroller,\n\tcreateViewToolbar,\n\tgroupPath,\n\tregisterSelectable,\n\ttype WorkbenchCallbacks,\n\tupdateSelectedRows,\n} from './panelWorkbenchHelpers.ts';\n\ntype PassSort = 'order' | 'label' | 'kind' | 'gpu';\n\nexport class PassesView {\n\treadonly root = document.createElement('section');\n\tprivate readonly toolbar = createViewToolbar('Pass filters and sorting');\n\tprivate readonly tabList = document.createElement('div');\n\tprivate readonly listButton = this.createSubviewButton('list', 'Pass List');\n\tprivate readonly groupsButton = this.createSubviewButton('groups', 'Group Hierarchy');\n\tprivate readonly listPane = document.createElement('div');\n\tprivate readonly groupsPane = document.createElement('div');\n\tprivate readonly listTable = createTableScroller([\n\t\t{ label: 'Order', column: 'numeric' },\n\t\t{ label: 'Segment', column: 'code' },\n\t\t{ label: 'Label' },\n\t\t{ label: 'Group' },\n\t\t{ label: 'Kind', column: 'kind' },\n\t\t{ label: 'GPU (ms)', column: 'numeric' },\n\t\t{ label: 'Reads', column: 'numeric' },\n\t\t{ label: 'Writes', column: 'numeric' },\n\t]);\n\tprivate readonly groupsTable = createTableScroller([\n\t\t{ label: '' },\n\t\t{ label: 'Group' },\n\t\t{ label: 'Retained', column: 'numeric' },\n\t\t{ label: 'Culled', column: 'numeric' },\n\t\t{ label: 'GPU work', column: 'numeric' },\n\t\t{ label: 'Inputs', column: 'numeric' },\n\t\t{ label: 'Outputs', column: 'numeric' },\n\t]);\n\tprivate readonly rows = new Map<string, HTMLElement[]>();\n\tprivate snapshot: FrameGraphDebugViewModel | undefined;\n\tprivate selected: Selection | undefined;\n\tprivate subview: PassesSubview = 'list';\n\tprivate search = '';\n\tprivate kind = 'all';\n\tprivate sort: PassSort = 'order';\n\n\tconstructor(private readonly callbacks: WorkbenchCallbacks, idPrefix: string) {\n\t\tthis.root.className = 'zenfg-inspector-view zenfg-inspector-passes-view';\n\t\tthis.root.id = `${idPrefix}-view-passes`;\n\t\tthis.root.setAttribute('role', 'tabpanel');\n\t\tthis.tabList.className = 'zenfg-inspector-subtabs';\n\t\tthis.tabList.setAttribute('role', 'tablist');\n\t\tthis.tabList.setAttribute('aria-label', 'Pass views');\n\t\tthis.tabList.append(this.listButton, this.groupsButton);\n\n\t\tconst search = createSearchInput('Search pass or group', this.search, (value) => {\n\t\t\tthis.search = value.trim().toLocaleLowerCase();\n\t\t\tthis.renderRows();\n\t\t});\n\t\tconst kind = createFilterSelect('Pass kind', this.kind, [\n\t\t\t['all', 'All kinds'],\n\t\t\t['render', 'Render'],\n\t\t\t['compute', 'Compute'],\n\t\t\t['copy', 'Copy'],\n\t\t\t['clear-buffer', 'Clear Buffer'],\n\t\t\t['command', 'Command'],\n\t\t\t['external-submission', 'External'],\n\t\t], (value) => {\n\t\t\tthis.kind = value;\n\t\t\tthis.renderRows();\n\t\t});\n\t\tconst sort = createFilterSelect('Sort passes', this.sort, [\n\t\t\t['order', 'Order'],\n\t\t\t['label', 'Label'],\n\t\t\t['kind', 'Kind'],\n\t\t\t['gpu', 'GPU'],\n\t\t], (value) => {\n\t\t\tthis.sort = value as PassSort;\n\t\t\tthis.renderRows();\n\t\t});\n\t\tthis.toolbar.append(search, kind, sort);\n\n\t\tthis.listButton.id = `${idPrefix}-list-subtab`;\n\t\tthis.listButton.setAttribute('aria-controls', `${idPrefix}-pass-list-panel`);\n\t\tthis.groupsButton.id = `${idPrefix}-groups-subtab`;\n\t\tthis.groupsButton.setAttribute('aria-controls', `${idPrefix}-group-list-panel`);\n\t\tthis.listPane.id = `${idPrefix}-pass-list-panel`;\n\t\tthis.listPane.className = 'zenfg-inspector-subview';\n\t\tthis.listPane.setAttribute('role', 'tabpanel');\n\t\tthis.listPane.setAttribute('aria-labelledby', this.listButton.id);\n\t\tthis.listPane.appendChild(this.listTable.scroller);\n\t\tthis.groupsPane.id = `${idPrefix}-group-list-panel`;\n\t\tthis.groupsPane.className = 'zenfg-inspector-subview';\n\t\tthis.groupsPane.setAttribute('role', 'tabpanel');\n\t\tthis.groupsPane.setAttribute('aria-labelledby', this.groupsButton.id);\n\t\tthis.groupsPane.appendChild(this.groupsTable.scroller);\n\t\tthis.root.append(this.tabList, this.toolbar, this.listPane, this.groupsPane);\n\t\tthis.updateSubview();\n\t}\n\n\tsetSnapshot(snapshot: FrameGraphDebugViewModel): void {\n\t\tthis.snapshot = snapshot;\n\t\tif (snapshot.debugGroups.length === 0 && this.subview === 'groups') this.subview = 'list';\n\t\tthis.groupsButton.disabled = snapshot.debugGroups.length === 0;\n\t\tthis.renderRows();\n\t\tthis.updateSubview();\n\t}\n\n\tsetSelection(selected: Selection | undefined): void {\n\t\tthis.selected = selected;\n\t\tupdateSelectedRows(this.rows, selected);\n\t}\n\n\tprivate createSubviewButton(subview: PassesSubview, label: string): HTMLButtonElement {\n\t\tconst button = document.createElement('button');\n\t\tbutton.type = 'button';\n\t\tbutton.textContent = label;\n\t\tbutton.setAttribute('role', 'tab');\n\t\tbutton.addEventListener('click', () => {\n\t\t\tthis.subview = subview;\n\t\t\tthis.updateSubview();\n\t\t});\n\t\treturn button;\n\t}\n\n\tprivate updateSubview(): void {\n\t\tconst listActive = this.subview === 'list';\n\t\tthis.listButton.setAttribute('aria-selected', listActive ? 'true' : 'false');\n\t\tthis.groupsButton.setAttribute('aria-selected', listActive ? 'false' : 'true');\n\t\tthis.listButton.classList.toggle('active', listActive);\n\t\tthis.groupsButton.classList.toggle('active', !listActive);\n\t\tthis.listPane.hidden = !listActive;\n\t\tthis.groupsPane.hidden = listActive;\n\t}\n\n\tprivate renderRows(): void {\n\t\tconst snapshot = this.snapshot;\n\t\tif (!snapshot) return;\n\t\tthis.rows.clear();\n\t\tthis.listTable.body.replaceChildren();\n\t\tthis.groupsTable.body.replaceChildren();\n\n\t\tconst passes = snapshot.nodes.filter((node) => this.matchesNode(snapshot, node));\n\t\tpasses.sort((a, b) => this.compareNodes(a, b));\n\t\tfor (const node of passes) {\n\t\t\tconst selection: Selection = { kind: 'node', id: node.id };\n\t\t\tconst row = document.createElement('tr');\n\t\t\tregisterSelectable(this.rows, row, selection, this.callbacks);\n\t\t\tconst segment = snapshot.segmentByNodeId.get(node.id);\n\t\t\trow.append(\n\t\t\t\tcreateCell(String(node.order), { column: 'numeric' }),\n\t\t\t\tcreateCell(segment ? `${segment.index}:${segment.kind === 'frame-graph' ? 'FG' : 'opaque'}` : '-', { column: 'code' }),\n\t\t\t\tcreateSelectionCell(labelNode(node), selection, this.callbacks),\n\t\t\t\tcreateCell(groupPath(snapshot, node.debugGroupId), { column: 'code' }),\n\t\t\t\tcreateKindCell(node.kind),\n\t\t\t\tcreateCell(node.kind === 'external-submission' ? 'opaque' : formatGpuDuration(node), { column: 'numeric' }),\n\t\t\t\tcreateCell(String(node.reads.length), { column: 'numeric' }),\n\t\t\t\tcreateCell(String(node.writes.length), { column: 'numeric' }),\n\t\t\t);\n\t\t\tthis.listTable.body.appendChild(row);\n\t\t}\n\t\tif (passes.length === 0) this.listTable.body.appendChild(createEmptyTableRow(8, 'No passes match the current filters.'));\n\n\t\tconst query = this.search;\n\t\tfor (const group of snapshot.debugGroups.filter((candidate) => (\n\t\t\tquery.length === 0 || candidate.path.join(' / ').toLocaleLowerCase().includes(query)\n\t\t))) {\n\t\t\tconst selection: Selection = { kind: 'group', pathKey: group.pathKey };\n\t\t\tconst row = document.createElement('tr');\n\t\t\tregisterSelectable(this.rows, row, selection, this.callbacks);\n\t\t\tconst toggleCell = document.createElement('td');\n\t\t\tconst toggle = document.createElement('button');\n\t\t\ttoggle.type = 'button';\n\t\t\ttoggle.className = 'zenfg-inspector-group-toggle';\n\t\t\tconst expanded = this.callbacks.isGroupExpanded(group.pathKey);\n\t\t\ttoggle.textContent = expanded ? '▾' : '▸';\n\t\t\ttoggle.title = 'Toggle group in Graph view';\n\t\t\ttoggle.setAttribute('aria-label', `${expanded ? 'Collapse' : 'Expand'} group ${group.path.join(' / ')}`);\n\t\t\ttoggle.addEventListener('click', () => this.callbacks.onGroupToggle(group.pathKey));\n\t\t\ttoggleCell.appendChild(toggle);\n\t\t\tconst labelCell = createSelectionCell(group.label, selection, this.callbacks);\n\t\t\tlabelCell.style.paddingLeft = `${8 + group.depth * 18}px`;\n\t\t\tconst summary = group.summary;\n\t\t\trow.append(\n\t\t\t\ttoggleCell,\n\t\t\t\tlabelCell,\n\t\t\t\tcreateCell(String(summary.retainedNodeCount), { column: 'numeric' }),\n\t\t\t\tcreateCell(String(summary.culledNodeCount), { column: 'numeric' }),\n\t\t\t\tcreateCell(summary.timedNodeCount === 0 ? '-' : (summary.gpuWorkDurationMicros / 1000).toFixed(3), { column: 'numeric' }),\n\t\t\t\tcreateCell(String(summary.inputResources.length), { column: 'numeric' }),\n\t\t\t\tcreateCell(String(summary.outputResources.length), { column: 'numeric' }),\r\n\t\t\t);\n\t\t\tthis.groupsTable.body.appendChild(row);\n\t\t}\n\t\tif (this.groupsTable.body.childElementCount === 0) this.groupsTable.body.appendChild(createEmptyTableRow(7, 'No diagnostic groups.'));\n\t\tupdateSelectedRows(this.rows, this.selected);\n\t}\n\n\tprivate matchesNode(snapshot: FrameGraphDebugViewModel, node: FrameGraphDebugNode): boolean {\n\t\tif (this.kind !== 'all' && node.kind !== this.kind) return false;\n\t\tif (this.search.length === 0) return true;\n\t\tconst haystack = `${labelNode(node)} ${groupPath(snapshot, node.debugGroupId)}`.toLocaleLowerCase();\n\t\treturn haystack.includes(this.search);\n\t}\n\n\tprivate compareNodes(a: FrameGraphDebugNode, b: FrameGraphDebugNode): number {\n\t\tswitch (this.sort) {\n\t\t\tcase 'label': return labelNode(a).localeCompare(labelNode(b)) || a.order - b.order;\n\t\t\tcase 'kind': return a.kind.localeCompare(b.kind) || a.order - b.order;\n\t\t\tcase 'gpu': return (b.gpuDurationMicros ?? -1) - (a.gpuDurationMicros ?? -1) || a.order - b.order;\n\t\t\tcase 'order': return a.order - b.order;\n\t\t}\n\t}\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FrameGraphDebugViewModel } from './debugCaptureModel.ts';
|
|
2
|
+
import type { Selection } from './panelTypes.ts';
|
|
3
|
+
import { type WorkbenchCallbacks } from './panelWorkbenchHelpers.ts';
|
|
4
|
+
export declare class ResourcesView {
|
|
5
|
+
private readonly callbacks;
|
|
6
|
+
readonly root: HTMLElement;
|
|
7
|
+
private readonly table;
|
|
8
|
+
private readonly rows;
|
|
9
|
+
private snapshot;
|
|
10
|
+
private selected;
|
|
11
|
+
private search;
|
|
12
|
+
private kind;
|
|
13
|
+
private origin;
|
|
14
|
+
constructor(callbacks: WorkbenchCallbacks, idPrefix: string);
|
|
15
|
+
setSnapshot(snapshot: FrameGraphDebugViewModel): void;
|
|
16
|
+
setSelection(selected: Selection | undefined): void;
|
|
17
|
+
private renderRows;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=panelResourcesView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panelResourcesView.d.ts","sourceRoot":"","sources":["../src/panelResourcesView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAaN,KAAK,kBAAkB,EAEvB,MAAM,4BAA4B,CAAC;AAEpC,qBAAa,aAAa;IAkBb,OAAO,CAAC,QAAQ,CAAC,SAAS;IAjBtC,QAAQ,CAAC,IAAI,cAAqC;IAClD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAQnB;IACH,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoC;IACzD,OAAO,CAAC,QAAQ,CAAuC;IACvD,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,MAAM,CAAS;gBAEM,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM;IA+B5E,WAAW,CAAC,QAAQ,EAAE,wBAAwB,GAAG,IAAI;IAKrD,YAAY,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI;IAKnD,OAAO,CAAC,UAAU;CAmClB"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { createCell, labelResource } from "./panelDomHelpers.js";
|
|
2
|
+
import { createEmptyTableRow, createKindCell, createFilterSelect, createSearchInput, createSelectionCell, createTableScroller, createViewToolbar, formatEstimatedBytes, formatResourceDescriptor, groupPath, registerSelectable, resourceAccessCounts, updateSelectedRows, } from "./panelWorkbenchHelpers.js";
|
|
3
|
+
export class ResourcesView {
|
|
4
|
+
callbacks;
|
|
5
|
+
root = document.createElement('section');
|
|
6
|
+
table = createTableScroller([
|
|
7
|
+
{ label: 'Resource / Group' },
|
|
8
|
+
{ label: 'Type / Origin', column: 'kind' },
|
|
9
|
+
{ label: 'Descriptor', column: 'code' },
|
|
10
|
+
{ label: 'Estimated', column: 'numeric' },
|
|
11
|
+
{ label: 'Lifetime', column: 'code' },
|
|
12
|
+
{ label: 'Physical', column: 'numeric' },
|
|
13
|
+
{ label: 'R / W', column: 'numeric' },
|
|
14
|
+
]);
|
|
15
|
+
rows = new Map();
|
|
16
|
+
snapshot;
|
|
17
|
+
selected;
|
|
18
|
+
search = '';
|
|
19
|
+
kind = 'all';
|
|
20
|
+
origin = 'all';
|
|
21
|
+
constructor(callbacks, idPrefix) {
|
|
22
|
+
this.callbacks = callbacks;
|
|
23
|
+
this.root.className = 'zenfg-inspector-view zenfg-inspector-resources-view';
|
|
24
|
+
this.root.id = `${idPrefix}-view-resources`;
|
|
25
|
+
this.root.setAttribute('role', 'tabpanel');
|
|
26
|
+
const toolbar = createViewToolbar('Resource filters');
|
|
27
|
+
toolbar.append(createSearchInput('Search resource or group', this.search, (value) => {
|
|
28
|
+
this.search = value.trim().toLocaleLowerCase();
|
|
29
|
+
this.renderRows();
|
|
30
|
+
}), createFilterSelect('Resource kind', this.kind, [
|
|
31
|
+
['all', 'All kinds'],
|
|
32
|
+
['texture', 'Texture'],
|
|
33
|
+
['buffer', 'Buffer'],
|
|
34
|
+
], (value) => {
|
|
35
|
+
this.kind = value;
|
|
36
|
+
this.renderRows();
|
|
37
|
+
}), createFilterSelect('Resource origin', this.origin, [
|
|
38
|
+
['all', 'All origins'],
|
|
39
|
+
['transient', 'Transient'],
|
|
40
|
+
['imported', 'Imported'],
|
|
41
|
+
['swapchain', 'Swapchain'],
|
|
42
|
+
], (value) => {
|
|
43
|
+
this.origin = value;
|
|
44
|
+
this.renderRows();
|
|
45
|
+
}));
|
|
46
|
+
this.root.append(toolbar, this.table.scroller);
|
|
47
|
+
}
|
|
48
|
+
setSnapshot(snapshot) {
|
|
49
|
+
this.snapshot = snapshot;
|
|
50
|
+
this.renderRows();
|
|
51
|
+
}
|
|
52
|
+
setSelection(selected) {
|
|
53
|
+
this.selected = selected;
|
|
54
|
+
updateSelectedRows(this.rows, selected);
|
|
55
|
+
}
|
|
56
|
+
renderRows() {
|
|
57
|
+
const snapshot = this.snapshot;
|
|
58
|
+
if (!snapshot)
|
|
59
|
+
return;
|
|
60
|
+
this.rows.clear();
|
|
61
|
+
this.table.body.replaceChildren();
|
|
62
|
+
const resources = snapshot.resources.filter((resource) => {
|
|
63
|
+
if (this.kind !== 'all' && resource.kind !== this.kind)
|
|
64
|
+
return false;
|
|
65
|
+
if (this.origin !== 'all' && resource.origin !== this.origin)
|
|
66
|
+
return false;
|
|
67
|
+
if (this.search.length === 0)
|
|
68
|
+
return true;
|
|
69
|
+
return `${labelResource(resource)} ${groupPath(snapshot, resource.debugGroupId)}`
|
|
70
|
+
.toLocaleLowerCase().includes(this.search);
|
|
71
|
+
});
|
|
72
|
+
for (const resource of resources) {
|
|
73
|
+
const selection = { kind: 'resource', id: resource.id };
|
|
74
|
+
const row = document.createElement('tr');
|
|
75
|
+
registerSelectable(this.rows, row, selection, this.callbacks);
|
|
76
|
+
const [reads, writes] = resourceAccessCounts(snapshot, resource.id);
|
|
77
|
+
const resourceCell = createSelectionCell(labelResource(resource), selection, this.callbacks);
|
|
78
|
+
const group = document.createElement('small');
|
|
79
|
+
group.textContent = groupPath(snapshot, resource.debugGroupId);
|
|
80
|
+
resourceCell.appendChild(group);
|
|
81
|
+
row.append(resourceCell, createKindCell(resource.kind, `${resource.kind} · ${resource.origin}`), createCell(formatResourceDescriptor(resource), { column: 'code' }), createCell(formatEstimatedBytes(resource.estimatedByteSize), { column: 'numeric' }), createCell(resource.lifetime ? `${resource.lifetime.firstUse}–${resource.lifetime.lastUse}` : '-', { column: 'code' }), createCell(resource.physicalResourceId === undefined ? '-' : `#${resource.physicalResourceId}`, { column: 'numeric' }), createCell(`${reads} / ${writes}`, { column: 'numeric' }));
|
|
82
|
+
this.table.body.appendChild(row);
|
|
83
|
+
}
|
|
84
|
+
if (resources.length === 0)
|
|
85
|
+
this.table.body.appendChild(createEmptyTableRow(7, 'No resources match the current filters.'));
|
|
86
|
+
updateSelectedRows(this.rows, this.selected);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=panelResourcesView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panelResourcesView.js","sourceRoot":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MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CACzD,CAAC;YACF,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAClC,CAAC;QACD,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,EAAE,yCAAyC,CAAC,CAAC,CAAC;QAC3H,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;CACD","sourcesContent":["import type { FrameGraphDebugViewModel } from './debugCaptureModel.ts';\nimport { createCell, labelResource } from './panelDomHelpers.ts';\nimport type { Selection } from './panelTypes.ts';\nimport {\n\tcreateEmptyTableRow,\n\tcreateKindCell,\n\tcreateFilterSelect,\n\tcreateSearchInput,\n\tcreateSelectionCell,\n\tcreateTableScroller,\n\tcreateViewToolbar,\n\tformatEstimatedBytes,\n\tformatResourceDescriptor,\n\tgroupPath,\n\tregisterSelectable,\n\tresourceAccessCounts,\n\ttype WorkbenchCallbacks,\n\tupdateSelectedRows,\n} from './panelWorkbenchHelpers.ts';\n\nexport class ResourcesView {\n\treadonly root = document.createElement('section');\n\tprivate readonly table = createTableScroller([\n\t\t{ label: 'Resource / Group' },\n\t\t{ label: 'Type / Origin', column: 'kind' },\n\t\t{ label: 'Descriptor', column: 'code' },\n\t\t{ label: 'Estimated', column: 'numeric' },\n\t\t{ label: 'Lifetime', column: 'code' },\n\t\t{ label: 'Physical', column: 'numeric' },\n\t\t{ label: 'R / W', column: 'numeric' },\n\t]);\n\tprivate readonly rows = new Map<string, HTMLElement[]>();\n\tprivate snapshot: FrameGraphDebugViewModel | undefined;\n\tprivate selected: Selection | undefined;\n\tprivate search = '';\n\tprivate kind = 'all';\n\tprivate origin = 'all';\n\n\tconstructor(private readonly callbacks: WorkbenchCallbacks, idPrefix: string) {\n\t\tthis.root.className = 'zenfg-inspector-view zenfg-inspector-resources-view';\n\t\tthis.root.id = `${idPrefix}-view-resources`;\n\t\tthis.root.setAttribute('role', 'tabpanel');\n\t\tconst toolbar = createViewToolbar('Resource filters');\n\t\ttoolbar.append(\n\t\t\tcreateSearchInput('Search resource or group', this.search, (value) => {\n\t\t\t\tthis.search = value.trim().toLocaleLowerCase();\n\t\t\t\tthis.renderRows();\n\t\t\t}),\n\t\t\tcreateFilterSelect('Resource kind', this.kind, [\n\t\t\t\t['all', 'All kinds'],\n\t\t\t\t['texture', 'Texture'],\n\t\t\t\t['buffer', 'Buffer'],\n\t\t\t], (value) => {\n\t\t\t\tthis.kind = value;\n\t\t\t\tthis.renderRows();\n\t\t\t}),\n\t\t\tcreateFilterSelect('Resource origin', this.origin, [\n\t\t\t\t['all', 'All origins'],\n\t\t\t\t['transient', 'Transient'],\n\t\t\t\t['imported', 'Imported'],\n\t\t\t\t['swapchain', 'Swapchain'],\n\t\t\t], (value) => {\n\t\t\t\tthis.origin = value;\n\t\t\t\tthis.renderRows();\n\t\t\t}),\n\t\t);\n\t\tthis.root.append(toolbar, this.table.scroller);\n\t}\n\n\tsetSnapshot(snapshot: FrameGraphDebugViewModel): void {\n\t\tthis.snapshot = snapshot;\n\t\tthis.renderRows();\n\t}\n\n\tsetSelection(selected: Selection | undefined): void {\n\t\tthis.selected = selected;\n\t\tupdateSelectedRows(this.rows, selected);\n\t}\n\n\tprivate renderRows(): void {\n\t\tconst snapshot = this.snapshot;\n\t\tif (!snapshot) return;\n\t\tthis.rows.clear();\n\t\tthis.table.body.replaceChildren();\n\t\tconst resources = snapshot.resources.filter((resource) => {\n\t\t\tif (this.kind !== 'all' && resource.kind !== this.kind) return false;\n\t\t\tif (this.origin !== 'all' && resource.origin !== this.origin) return false;\n\t\t\tif (this.search.length === 0) return true;\n\t\t\treturn `${labelResource(resource)} ${groupPath(snapshot, resource.debugGroupId)}`\n\t\t\t\t.toLocaleLowerCase().includes(this.search);\n\t\t});\n\t\tfor (const resource of resources) {\n\t\t\tconst selection: Selection = { kind: 'resource', id: resource.id };\n\t\t\tconst row = document.createElement('tr');\n\t\t\tregisterSelectable(this.rows, row, selection, this.callbacks);\n\t\t\tconst [reads, writes] = resourceAccessCounts(snapshot, resource.id);\n\t\t\tconst resourceCell = createSelectionCell(labelResource(resource), selection, this.callbacks);\n\t\t\tconst group = document.createElement('small');\n\t\t\tgroup.textContent = groupPath(snapshot, resource.debugGroupId);\n\t\t\tresourceCell.appendChild(group);\n\t\t\trow.append(\n\t\t\t\tresourceCell,\n\t\t\t\tcreateKindCell(resource.kind, `${resource.kind} · ${resource.origin}`),\n\t\t\t\tcreateCell(formatResourceDescriptor(resource), { column: 'code' }),\n\t\t\t\tcreateCell(formatEstimatedBytes(resource.estimatedByteSize), { column: 'numeric' }),\n\t\t\t\tcreateCell(resource.lifetime ? `${resource.lifetime.firstUse}–${resource.lifetime.lastUse}` : '-', { column: 'code' }),\n\t\t\t\tcreateCell(resource.physicalResourceId === undefined ? '-' : `#${resource.physicalResourceId}`, { column: 'numeric' }),\n\t\t\t\tcreateCell(`${reads} / ${writes}`, { column: 'numeric' }),\r\n\t\t\t);\n\t\t\tthis.table.body.appendChild(row);\n\t\t}\n\t\tif (resources.length === 0) this.table.body.appendChild(createEmptyTableRow(7, 'No resources match the current filters.'));\n\t\tupdateSelectedRows(this.rows, this.selected);\n\t}\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FrameGraphDebugViewModel } from './debugCaptureModel.ts';
|
|
2
|
+
import type { Selection } from './panelTypes.ts';
|
|
3
|
+
export declare function resolveSelectedDetail(snapshot: FrameGraphDebugViewModel, selected: Selection | undefined): unknown;
|
|
4
|
+
export declare function selectionExists(snapshot: FrameGraphDebugViewModel, selected: Selection): boolean;
|
|
5
|
+
//# sourceMappingURL=panelSelection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"panelSelection.d.ts","sourceRoot":"","sources":["../src/panelSelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,wBAAgB,qBAAqB,CACpC,QAAQ,EAAE,wBAAwB,EAClC,QAAQ,EAAE,SAAS,GAAG,SAAS,GAC7B,OAAO,CAuCT;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,wBAAwB,EAAE,QAAQ,EAAE,SAAS,GAAG,OAAO,CAiBhG"}
|