Skip to content

Commit

Permalink
fix flamegraph links
Browse files Browse the repository at this point in the history
  • Loading branch information
fwbrasil committed Apr 4, 2024
1 parent 557eead commit 3d6c084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/dev/bench/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@
async function loadFlamegraph(benchmarkName, gistId) {
const type = document.querySelector(`input[name="flamegraphType"]:checked`).value;
const run = pastRuns.find(run => run.gistId === gistId);
const flamegraphUrl = (await run.gistFiles).find(url => url.includes(`${benchmarkName}-${type}`));
const flamegraphFile = (await run.gistFiles).find(file => file.includes(`${benchmarkName}-${type}`));
const flamegraphUrl = gistUrlToRawFileUrl(run.gistUrl, flamegraphFile);
document.getElementById('jmh-iframe').src = `https://htmlpreview.github.io/?${encodeURIComponent(flamegraphUrl)}`;
document.getElementById('flamegraph-dialog').close();
}
Expand Down

0 comments on commit 3d6c084

Please sign in to comment.