Demangle C++ names in flamegraphs.
Change-Id: I1f549c476b12f11881d58563dc44227d1c23dbbb
diff --git a/ui/src/controller/heap_profile_controller.ts b/ui/src/controller/heap_profile_controller.ts
index 9f9233e..2f3b07d 100644
--- a/ui/src/controller/heap_profile_controller.ts
+++ b/ui/src/controller/heap_profile_controller.ts
@@ -211,8 +211,8 @@
}
const callsites = await this.args.engine.query(
- `SELECT id, name, IFNULL(parent_id, -1), depth, cumulative_size,
- cumulative_alloc_size, cumulative_count,
+ `SELECT id, IFNULL(DEMANGLE(name), name), IFNULL(parent_id, -1), depth,
+ cumulative_size, cumulative_alloc_size, cumulative_count,
cumulative_alloc_count, map_name, size from ${tableName} ${orderBy}`);
const flamegraphData: CallsiteInfo[] = new Array();