summaryrefslogtreecommitdiffstats
path: root/test/monitoring
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-08-29 17:58:08 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-08-29 18:02:15 +0200
commit170aef20bc3a59d5139c2eff8794d9ba4c83a2e5 (patch)
tree8354a7496e390e03e6fbdd0e6e663c4228326cb7 /test/monitoring
parent6d8d9dc5aad148a74bcdf8965bee9f7058a08166 (diff)
hooking: Add hook at global scope
Actually the global scope only allows to trace log messages. Change-Id: Ib73edf2e3168311b2ad694d857e6647e34884313 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'test/monitoring')
-rw-r--r--test/monitoring/monitor-base.css3
-rw-r--r--test/monitoring/monitor-demo.css1
-rw-r--r--test/monitoring/monitor-pastel.css1
-rw-r--r--test/monitoring/monitor.html5
-rw-r--r--test/monitoring/monitor.js1
5 files changed, 9 insertions, 2 deletions
diff --git a/test/monitoring/monitor-base.css b/test/monitoring/monitor-base.css
index f2de1d92..ff761ae7 100644
--- a/test/monitoring/monitor-base.css
+++ b/test/monitoring/monitor-base.css
@@ -88,8 +88,7 @@ body.on #params, body.on #connect, body.off #disconnect { display: none; }
/*******************************************************************/
/* setting for traces */
-#apis .trace-evt {
- visibility: hidden;
+#apis .event, #apis .global {
display: none;
}
diff --git a/test/monitoring/monitor-demo.css b/test/monitoring/monitor-demo.css
index 87cf0a0e..1025b120 100644
--- a/test/monitoring/monitor-demo.css
+++ b/test/monitoring/monitor-demo.css
@@ -244,6 +244,7 @@ html {
.traceevent.daemon, .trace-box.daemon { color: #5af; }
.traceevent.service, .trace-box.service { color: #0f0; }
.traceevent.event, .trace-box.event { color: #f52; }
+.traceevent.global, .trace-box.global { color: white; }
.traceevent.closed {
max-height: 16px;
diff --git a/test/monitoring/monitor-pastel.css b/test/monitoring/monitor-pastel.css
index 0264bf52..d5cf3f6f 100644
--- a/test/monitoring/monitor-pastel.css
+++ b/test/monitoring/monitor-pastel.css
@@ -224,6 +224,7 @@ body {
.traceevent.daemon, .trace-box.daemon { background: #fdf; }
.traceevent.service, .trace-box.service { background: #ddf; }
.traceevent.event, .trace-box.event { background: #dfd; }
+.traceevent.global, .trace-box.global { background: #eee; }
.traceevent.closed {
max-height: 16px;
diff --git a/test/monitoring/monitor.html b/test/monitoring/monitor.html
index f22a62b2..e9572ba8 100644
--- a/test/monitoring/monitor.html
+++ b/test/monitoring/monitor.html
@@ -171,6 +171,11 @@
<div class="trace-item"><input type="radio" value="extra">extra</input></div>
<div class="trace-item"><input type="radio" value="all">all</input></div>
</div>
+ <div class="trace-box global" data-trace="global">
+ <div class="trace-title">trace globals:</div>
+ <div class="trace-item"><input type="radio" value="no" checked>no</input></div>
+ <div class="trace-item"><input type="radio" value="all">all</input></div>
+ </div>
</div>
</template>
diff --git a/test/monitoring/monitor.js b/test/monitoring/monitor.js
index e1d4be5b..bee87e4b 100644
--- a/test/monitoring/monitor.js
+++ b/test/monitoring/monitor.js
@@ -445,6 +445,7 @@ function gottraceevent(obj) {
service: function(r) { return r.api + "@" + r.action; },
daemon: function(r) { return r.api + ":" + r.action; },
event: function(r) { return r.name + "!" + r.action; },
+ global: function(r) { return "$" + r.action; },
})[type](desc);
var tab = makeobj(desc, 4);
if ("data" in data)