From 170aef20bc3a59d5139c2eff8794d9ba4c83a2e5 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Tue, 29 Aug 2017 17:58:08 +0200 Subject: hooking: Add hook at global scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Actually the global scope only allows to trace log messages. Change-Id: Ib73edf2e3168311b2ad694d857e6647e34884313 Signed-off-by: José Bollo --- test/monitoring/monitor-base.css | 3 +-- test/monitoring/monitor-demo.css | 1 + test/monitoring/monitor-pastel.css | 1 + test/monitoring/monitor.html | 5 +++++ test/monitoring/monitor.js | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) (limited to 'test') 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 @@
extra
all
+
+
trace globals:
+
no
+
all
+
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) -- cgit 1.2.3-korg