aboutgitcodebugslistschat
path: root/test/lib/perf_report
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-02-22 18:29:45 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-02-22 18:36:24 +0100
commit337f55166f6db7ee3f6e6e253ce786b3b6606216 (patch)
tree6f6c02ed1cae7a5130789497438b98b5332c8a74 /test/lib/perf_report
parentbe2a7898e9de236da7c42d1fb37a5a2017ac192b (diff)
downloadpasst-337f55166f6db7ee3f6e6e253ce786b3b6606216.tar
passt-337f55166f6db7ee3f6e6e253ce786b3b6606216.tar.gz
passt-337f55166f6db7ee3f6e6e253ce786b3b6606216.tar.bz2
passt-337f55166f6db7ee3f6e6e253ce786b3b6606216.tar.lz
passt-337f55166f6db7ee3f6e6e253ce786b3b6606216.tar.xz
passt-337f55166f6db7ee3f6e6e253ce786b3b6606216.tar.zst
passt-337f55166f6db7ee3f6e6e253ce786b3b6606216.zip
demo, ci: Switch to asciinema(1) for terminal recordings
For demos, cool-retro-term(1) looked fancier, but several threads of that and ffmpeg(1) are just messing up with performance testing. The CI videos started getting really big as well, and they were difficult to read. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/lib/perf_report')
-rwxr-xr-xtest/lib/perf_report17
1 files changed, 11 insertions, 6 deletions
diff --git a/test/lib/perf_report b/test/lib/perf_report
index baa084b..9117046 100755
--- a/test/lib/perf_report
+++ b/test/lib/perf_report
@@ -103,19 +103,24 @@ for (var i = 0; i < perf_links.length; i++) {
var obj = document.getElementById(perf_links[i][0]);
obj.addEventListener("click", function(event) {
- var ci_video = document.getElementById("ci_video");
+ var ci_video = document.getElementById("ci");
var top = ci_video.offsetTop - 5;
+ var seek;
- event.preventDefault();
- ci_video.play();
- ci_video.pause();
for (var i = 0; i < perf_links.length; i++) {
if (this.id == perf_links[i][0]) {
- ci_video.currentTime = perf_links[i][1] - 10;
+ seek = perf_links[i][1];
}
}
+
+ event.preventDefault();
+ ci_video_player.dispose();
+ ci_video_player = AsciinemaPlayer.create(
+ "/builds/latest/web/ci.cast",
+ ci_video,
+ { startAt: seek, autoplay: true });
+
window.scrollTo({ top: top, behavior: "smooth" })
- ci_video.play();
}, false);
}
'