Skip to content

Commit 4c2ee98

Browse files
committed
fix: heap unit and order of annotations
1 parent 78c0c62 commit 4c2ee98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/vscode-js-profile-core/src/heap/heapProfileAnnotations.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export class HeapProfileAnnotations extends ProfileAnnotations<IProfileInformati
7070
return [
7171
new CodeLens(range, {
7272
title:
73-
`${decimalFormat.format(data.totalSize / 1000)}kB Total Size, ` +
74-
`${decimalFormat.format(data.selfSize / 1000)}kB Self Size`,
73+
`${decimalFormat.format(data.selfSize / 1000)}kB Self Size, ` +
74+
`${decimalFormat.format(data.totalSize / 1000)}kB Total Size`,
7575
command: '',
7676
}),
7777
new CodeLens(range, {

packages/vscode-js-profile-table/src/heap-client/time-view.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ const TimeViewRow: FunctionComponent<{
145145
>
146146
<div className={styles.duration} aria-labelledby="self-size-header">
147147
<ImpactBar impact={node.selfSize / node.totalSize} />
148-
{decimalFormat.format(node.selfSize)}
148+
{decimalFormat.format(node.selfSize)}kB
149149
</div>
150150
<div className={styles.duration} aria-labelledby="total-size-header">
151151
<ImpactBar impact={node.totalSize / root.totalSize} />
152-
{decimalFormat.format(node.totalSize)}
152+
{decimalFormat.format(node.totalSize)}kB
153153
</div>
154154
{!location ? (
155155
<div

0 commit comments

Comments
 (0)