Skip to content

Commit

Permalink
Post-review commit: Support subcategories
Browse files Browse the repository at this point in the history
  • Loading branch information
julienw committed Jul 12, 2019
1 parent 237ae25 commit 2a9c78d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/profile-logic/comparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,10 @@ function combineFrameTables(

newFrameTable.address.push(frameTable.address[i]);
newFrameTable.category.push(newCategory);
// TODO we assume that subcategory strings are the same if the category is
// the same, and have no translation maps. But we should really implement
// one.
newFrameTable.subcategory.push(frameTable.subcategory[i]);
newFrameTable.func.push(newFunc);
newFrameTable.implementation.push(
implementation === null
Expand Down Expand Up @@ -633,6 +637,10 @@ function combineStackTables(

newStackTable.frame.push(newFrameIndex);
newStackTable.category.push(newCategory);
// TODO we assume that subcategory strings are the same if the category is
// the same, and have no translation maps. But we should really implement
// one.
newStackTable.subcategory.push(stackTable.subcategory[i]);
newStackTable.prefix.push(newPrefix);

translationMap.set(i, newStackTable.length);
Expand Down

0 comments on commit 2a9c78d

Please sign in to comment.