Skip to content

Commit 6781a87

Browse files
committed
sampleCategories
1 parent 703e34a commit 6781a87

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/shared/thread/ActivityGraphFills.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export class ActivityGraphFillComputer {
305305

306306
// Go through the samples and accumulate the category into the buffer.
307307
const { samplePositions, halfwayPositions } = precomputedPositions;
308-
const { threadCPUPercent } = samples;
308+
const { threadCPUPercent, category: sampleCategories } = samples;
309309
let beforeSampleCpuPercent = threadCPUPercent[0];
310310
let halfwayPositionBefore = halfwayPositions[0];
311311
for (let i = 0; i < samples.length; i++) {
@@ -318,7 +318,7 @@ export class ActivityGraphFillComputer {
318318
continue;
319319
}
320320

321-
const category = samples.category[i];
321+
const category = sampleCategories[i];
322322

323323
const bufferIndex =
324324
sampleSelectedStates[i] & SELECTED_STATE_BUFFER_INDEX_MASK;

0 commit comments

Comments
 (0)