diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css
index 70c28a0f9e..6d026a72ed 100644
--- a/docs/_static/css/custom.css
+++ b/docs/_static/css/custom.css
@@ -212,7 +212,9 @@ a:hover {
border-right: 0.15em solid #31373e;
white-space: nowrap;
margin: 0 auto;
- animation: typing 2.75s steps(40, end), blink-caret 0.75s step-end infinite;
+ animation:
+ typing 2.75s steps(40, end),
+ blink-caret 0.75s step-end infinite;
}
@keyframes typing {
diff --git a/src/memray/reporters/assets/common.test.js b/src/memray/reporters/assets/common.test.js
index a404482ad4..0ca61ed15c 100644
--- a/src/memray/reporters/assets/common.test.js
+++ b/src/memray/reporters/assets/common.test.js
@@ -22,7 +22,7 @@ describe("Flame graph tooltip generation", () => {
thread_id: "merged thread",
};
expect(makeTooltipString(data, "1KiB", true)).toBe(
- "File foo.py, line 10 in foo
1KiB total
3 allocations"
+ "File foo.py, line 10 in foo
1KiB total
3 allocations",
);
});
@@ -33,7 +33,7 @@ describe("Flame graph tooltip generation", () => {
thread_id: "0x1",
};
expect(makeTooltipString(data, "1KiB", false)).toBe(
- "File foo.py, line 10 in foo
1KiB total
3 allocations
Thread ID: 0x1"
+ "File foo.py, line 10 in foo
1KiB total
3 allocations
Thread ID: 0x1",
);
});
test("Generate label with single allocation", () => {
@@ -43,7 +43,7 @@ describe("Flame graph tooltip generation", () => {
thread_id: "0x1",
};
expect(makeTooltipString(data, "1KiB", false)).toBe(
- "File foo.py, line 10 in foo
1KiB total
1 allocation
Thread ID: 0x1"
+ "File foo.py, line 10 in foo
1KiB total
1 allocation
Thread ID: 0x1",
);
});
});
@@ -114,8 +114,8 @@ describe("Filter threads", () => {
thread_id: "0x0",
children: [],
},
- 2
- )
+ 2,
+ ),
).toStrictEqual({
thread_id: "0x0",
children: [],
diff --git a/src/memray/reporters/assets/temporal_flamegraph.js b/src/memray/reporters/assets/temporal_flamegraph.js
index bce2880e33..7765a350a7 100644
--- a/src/memray/reporters/assets/temporal_flamegraph.js
+++ b/src/memray/reporters/assets/temporal_flamegraph.js
@@ -85,7 +85,7 @@ function findHWMAllocations(
intervals,
node_objects,
hwmSnapshot,
- parent_index_by_child_index
+ parent_index_by_child_index,
) {
intervals.forEach((interval) => {
let [allocBefore, deallocBefore, nodeIndex, count, bytes] = interval;
@@ -108,7 +108,7 @@ function findLeakedAllocations(
node_objects,
rangeStart,
rangeEnd,
- parent_index_by_child_index
+ parent_index_by_child_index,
) {
intervals.forEach((interval) => {
let [allocBefore, deallocBefore, nodeIndex, count, bytes] = interval;
@@ -150,7 +150,7 @@ function packedDataToTree(packedData, rangeStart, rangeEnd) {
" is " +
hwmBytes +
" at " +
- hwmSnapshot
+ hwmSnapshot,
);
let plotUpdate = { shapes: [] };
@@ -197,14 +197,14 @@ function packedDataToTree(packedData, rangeStart, rangeEnd) {
flamegraphIntervals,
flamegraphNodeObjects,
hwmSnapshot,
- parent_index_by_child_index
+ parent_index_by_child_index,
);
if (inverted) {
findHWMAllocations(
invertedNoImportsIntervals,
invertedNoImportsNodeObjects,
hwmSnapshot,
- inverted_no_imports_parent_index_by_child_index
+ inverted_no_imports_parent_index_by_child_index,
);
}
} else {
@@ -215,7 +215,7 @@ function packedDataToTree(packedData, rangeStart, rangeEnd) {
flamegraphNodeObjects,
rangeStart,
rangeEnd,
- parent_index_by_child_index
+ parent_index_by_child_index,
);
if (inverted) {
findLeakedAllocations(
@@ -223,7 +223,7 @@ function packedDataToTree(packedData, rangeStart, rangeEnd) {
invertedNoImportsNodeObjects,
rangeStart,
rangeEnd,
- inverted_no_imports_parent_index_by_child_index
+ inverted_no_imports_parent_index_by_child_index,
);
}
}
@@ -400,7 +400,7 @@ function main() {
console.log("main");
const unique_threads = packed_data.unique_threads.map(
- (tid) => packed_data.strings[tid]
+ (tid) => packed_data.strings[tid],
);
initThreadsDropdown({ unique_threads: unique_threads }, merge_threads);