Skip to content

Commit acbfa47

Browse files
committed
Store samples.categories in a local variable.
1 parent 0421fe7 commit acbfa47

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
@@ -307,7 +307,7 @@ export class ActivityGraphFillComputer {
307307

308308
// Go through the samples and accumulate the category into the buffer.
309309
const { samplePositions, halfwayPositions } = precomputedPositions;
310-
const { threadCPUPercent } = samples;
310+
const { threadCPUPercent, category: sampleCategories } = samples;
311311
let beforeSampleCpuPercent = threadCPUPercent[0];
312312
let halfwayPositionBefore = halfwayPositions[0];
313313
for (let i = 0; i < samples.length; i++) {
@@ -322,7 +322,7 @@ export class ActivityGraphFillComputer {
322322
continue;
323323
}
324324

325-
const category = samples.category[i];
325+
const category = sampleCategories[i];
326326

327327
const bufferIndex =
328328
sampleSelectedStates[i] & SAMPLE_RELATION_TO_SELECTED_STATE_MASK;

0 commit comments

Comments
 (0)