summaryrefslogtreecommitdiff
path: root/doc/invocations-http-server/templates/critical_path.html
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2025-05-20 17:57:33 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2025-05-20 19:07:56 +0200
commitfabb8f90506c1a09dd0cc3776f6a8eaa66036568 (patch)
tree28732c0f4b81daac84b38cf5bbb31265fed7844f /doc/invocations-http-server/templates/critical_path.html
parent52af0031631c562106dfc568b3483d3a5ced05e3 (diff)
downloadjustbuild-fabb8f90506c1a09dd0cc3776f6a8eaa66036568.tar.gz
invocation server: add critical-path computation
Diffstat (limited to 'doc/invocations-http-server/templates/critical_path.html')
-rw-r--r--doc/invocations-http-server/templates/critical_path.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/invocations-http-server/templates/critical_path.html b/doc/invocations-http-server/templates/critical_path.html
new file mode 100644
index 00000000..8d818809
--- /dev/null
+++ b/doc/invocations-http-server/templates/critical_path.html
@@ -0,0 +1,27 @@
+{% extends "base.html" %}
+{% block heading %}
+Invocations {{invocation | e}}
+{% endblock %}
+
+{% from 'macros.html' import show_action %}
+
+{% block content %}
+<h1>Critical path for {{ invocation | e }}</h1>
+
+<h2>Overview</h2>
+<ul>
+ <li>Invocation: <a href="/invocations/{{ invocation | e }}"><tt>{{ invocation | e }}</tt></a></li>
+ <li>Critical artifact: <tt>{{ critical_artifact["name"] | e }}</tt></li>
+ <li>Duration: <tt>{{ critical_artifact["duration"] | e }}</tt></li>
+ <li>Path:</li>
+ <ul>
+ {% for entry in critical_artifact["path"] %}
+ {% if entry["type"] == "ACTION" %}
+ {{ show_action(entry["data"]) }}
+ {% else %}
+ <li>{{ entry["type"] | lower | e }} <tt>{{ entry["data"]["name"] | e }}</tt></li>
+ {% endif %}
+ {% endfor %}
+ </ul>
+</ul>
+{% endblock %}