620 lines
62 KiB
Text
620 lines
62 KiB
Text
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 1,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"trace_directory = '~/.ros/tracing/session-pingpong/ust'"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 2,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"import sys\n",
|
|
"# Assuming a workspace with:\n",
|
|
"# src/tracetools_analysis/\n",
|
|
"# src/ros2/tracing/tracetools_read/\n",
|
|
"sys.path.insert(0, '../')\n",
|
|
"sys.path.insert(0, '../../../ros2/tracing/tracetools_read/')\n",
|
|
"import datetime as dt\n",
|
|
"import os\n",
|
|
"\n",
|
|
"from bokeh.plotting import figure\n",
|
|
"from bokeh.plotting import output_notebook\n",
|
|
"from bokeh.io import show\n",
|
|
"from bokeh.layouts import row\n",
|
|
"from bokeh.models import ColumnDataSource\n",
|
|
"from bokeh.models import DatetimeTickFormatter\n",
|
|
"from bokeh.models import PrintfTickFormatter\n",
|
|
"import numpy as np\n",
|
|
"import pandas as pd\n",
|
|
"\n",
|
|
"from tracetools_analysis.analysis import load\n",
|
|
"from tracetools_analysis.analysis import ros2_processor\n",
|
|
"from tracetools_analysis.analysis import utils\n",
|
|
"from tracetools_analysis.conversion import ctf"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 3,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"name": "stdout",
|
|
"output_type": "stream",
|
|
"text": [
|
|
"413 events\n"
|
|
]
|
|
}
|
|
],
|
|
"source": [
|
|
"# Convert\n",
|
|
"trace_directory = os.path.expanduser(trace_directory)\n",
|
|
"pickle_filename = 'pickle'\n",
|
|
"pickle_path = os.path.join(trace_directory, pickle_filename)\n",
|
|
"count = ctf.convert(trace_directory, pickle_path)\n",
|
|
"print(f'{count} events')\n",
|
|
"\n",
|
|
"# Process\n",
|
|
"events = load.load_pickle(pickle_path)\n",
|
|
"processor = ros2_processor.ros2_process(events)\n",
|
|
"data_model = processor.get_data_model()\n",
|
|
"#data_model.print_model()"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": 4,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"\n",
|
|
" <div class=\"bk-root\">\n",
|
|
" <a href=\"https://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n",
|
|
" <span id=\"1001\">Loading BokehJS ...</span>\n",
|
|
" </div>"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"application/javascript": [
|
|
"\n",
|
|
"(function(root) {\n",
|
|
" function now() {\n",
|
|
" return new Date();\n",
|
|
" }\n",
|
|
"\n",
|
|
" var force = true;\n",
|
|
"\n",
|
|
" if (typeof root._bokeh_onload_callbacks === \"undefined\" || force === true) {\n",
|
|
" root._bokeh_onload_callbacks = [];\n",
|
|
" root._bokeh_is_loading = undefined;\n",
|
|
" }\n",
|
|
"\n",
|
|
" var JS_MIME_TYPE = 'application/javascript';\n",
|
|
" var HTML_MIME_TYPE = 'text/html';\n",
|
|
" var EXEC_MIME_TYPE = 'application/vnd.bokehjs_exec.v0+json';\n",
|
|
" var CLASS_NAME = 'output_bokeh rendered_html';\n",
|
|
"\n",
|
|
" /**\n",
|
|
" * Render data to the DOM node\n",
|
|
" */\n",
|
|
" function render(props, node) {\n",
|
|
" var script = document.createElement(\"script\");\n",
|
|
" node.appendChild(script);\n",
|
|
" }\n",
|
|
"\n",
|
|
" /**\n",
|
|
" * Handle when an output is cleared or removed\n",
|
|
" */\n",
|
|
" function handleClearOutput(event, handle) {\n",
|
|
" var cell = handle.cell;\n",
|
|
"\n",
|
|
" var id = cell.output_area._bokeh_element_id;\n",
|
|
" var server_id = cell.output_area._bokeh_server_id;\n",
|
|
" // Clean up Bokeh references\n",
|
|
" if (id != null && id in Bokeh.index) {\n",
|
|
" Bokeh.index[id].model.document.clear();\n",
|
|
" delete Bokeh.index[id];\n",
|
|
" }\n",
|
|
"\n",
|
|
" if (server_id !== undefined) {\n",
|
|
" // Clean up Bokeh references\n",
|
|
" var cmd = \"from bokeh.io.state import curstate; print(curstate().uuid_to_server['\" + server_id + \"'].get_sessions()[0].document.roots[0]._id)\";\n",
|
|
" cell.notebook.kernel.execute(cmd, {\n",
|
|
" iopub: {\n",
|
|
" output: function(msg) {\n",
|
|
" var id = msg.content.text.trim();\n",
|
|
" if (id in Bokeh.index) {\n",
|
|
" Bokeh.index[id].model.document.clear();\n",
|
|
" delete Bokeh.index[id];\n",
|
|
" }\n",
|
|
" }\n",
|
|
" }\n",
|
|
" });\n",
|
|
" // Destroy server and session\n",
|
|
" var cmd = \"import bokeh.io.notebook as ion; ion.destroy_server('\" + server_id + \"')\";\n",
|
|
" cell.notebook.kernel.execute(cmd);\n",
|
|
" }\n",
|
|
" }\n",
|
|
"\n",
|
|
" /**\n",
|
|
" * Handle when a new output is added\n",
|
|
" */\n",
|
|
" function handleAddOutput(event, handle) {\n",
|
|
" var output_area = handle.output_area;\n",
|
|
" var output = handle.output;\n",
|
|
"\n",
|
|
" // limit handleAddOutput to display_data with EXEC_MIME_TYPE content only\n",
|
|
" if ((output.output_type != \"display_data\") || (!output.data.hasOwnProperty(EXEC_MIME_TYPE))) {\n",
|
|
" return\n",
|
|
" }\n",
|
|
"\n",
|
|
" var toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n",
|
|
"\n",
|
|
" if (output.metadata[EXEC_MIME_TYPE][\"id\"] !== undefined) {\n",
|
|
" toinsert[toinsert.length - 1].firstChild.textContent = output.data[JS_MIME_TYPE];\n",
|
|
" // store reference to embed id on output_area\n",
|
|
" output_area._bokeh_element_id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n",
|
|
" }\n",
|
|
" if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n",
|
|
" var bk_div = document.createElement(\"div\");\n",
|
|
" bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n",
|
|
" var script_attrs = bk_div.children[0].attributes;\n",
|
|
" for (var i = 0; i < script_attrs.length; i++) {\n",
|
|
" toinsert[toinsert.length - 1].firstChild.setAttribute(script_attrs[i].name, script_attrs[i].value);\n",
|
|
" }\n",
|
|
" // store reference to server id on output_area\n",
|
|
" output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n",
|
|
" }\n",
|
|
" }\n",
|
|
"\n",
|
|
" function register_renderer(events, OutputArea) {\n",
|
|
"\n",
|
|
" function append_mime(data, metadata, element) {\n",
|
|
" // create a DOM node to render to\n",
|
|
" var toinsert = this.create_output_subarea(\n",
|
|
" metadata,\n",
|
|
" CLASS_NAME,\n",
|
|
" EXEC_MIME_TYPE\n",
|
|
" );\n",
|
|
" this.keyboard_manager.register_events(toinsert);\n",
|
|
" // Render to node\n",
|
|
" var props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n",
|
|
" render(props, toinsert[toinsert.length - 1]);\n",
|
|
" element.append(toinsert);\n",
|
|
" return toinsert\n",
|
|
" }\n",
|
|
"\n",
|
|
" /* Handle when an output is cleared or removed */\n",
|
|
" events.on('clear_output.CodeCell', handleClearOutput);\n",
|
|
" events.on('delete.Cell', handleClearOutput);\n",
|
|
"\n",
|
|
" /* Handle when a new output is added */\n",
|
|
" events.on('output_added.OutputArea', handleAddOutput);\n",
|
|
"\n",
|
|
" /**\n",
|
|
" * Register the mime type and append_mime function with output_area\n",
|
|
" */\n",
|
|
" OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n",
|
|
" /* Is output safe? */\n",
|
|
" safe: true,\n",
|
|
" /* Index of renderer in `output_area.display_order` */\n",
|
|
" index: 0\n",
|
|
" });\n",
|
|
" }\n",
|
|
"\n",
|
|
" // register the mime type if in Jupyter Notebook environment and previously unregistered\n",
|
|
" if (root.Jupyter !== undefined) {\n",
|
|
" var events = require('base/js/events');\n",
|
|
" var OutputArea = require('notebook/js/outputarea').OutputArea;\n",
|
|
"\n",
|
|
" if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n",
|
|
" register_renderer(events, OutputArea);\n",
|
|
" }\n",
|
|
" }\n",
|
|
"\n",
|
|
" \n",
|
|
" if (typeof (root._bokeh_timeout) === \"undefined\" || force === true) {\n",
|
|
" root._bokeh_timeout = Date.now() + 5000;\n",
|
|
" root._bokeh_failed_load = false;\n",
|
|
" }\n",
|
|
"\n",
|
|
" var NB_LOAD_WARNING = {'data': {'text/html':\n",
|
|
" \"<div style='background-color: #fdd'>\\n\"+\n",
|
|
" \"<p>\\n\"+\n",
|
|
" \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n",
|
|
" \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n",
|
|
" \"</p>\\n\"+\n",
|
|
" \"<ul>\\n\"+\n",
|
|
" \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n",
|
|
" \"<li>use INLINE resources instead, as so:</li>\\n\"+\n",
|
|
" \"</ul>\\n\"+\n",
|
|
" \"<code>\\n\"+\n",
|
|
" \"from bokeh.resources import INLINE\\n\"+\n",
|
|
" \"output_notebook(resources=INLINE)\\n\"+\n",
|
|
" \"</code>\\n\"+\n",
|
|
" \"</div>\"}};\n",
|
|
"\n",
|
|
" function display_loaded() {\n",
|
|
" var el = document.getElementById(\"1001\");\n",
|
|
" if (el != null) {\n",
|
|
" el.textContent = \"BokehJS is loading...\";\n",
|
|
" }\n",
|
|
" if (root.Bokeh !== undefined) {\n",
|
|
" if (el != null) {\n",
|
|
" el.textContent = \"BokehJS \" + root.Bokeh.version + \" successfully loaded.\";\n",
|
|
" }\n",
|
|
" } else if (Date.now() < root._bokeh_timeout) {\n",
|
|
" setTimeout(display_loaded, 100)\n",
|
|
" }\n",
|
|
" }\n",
|
|
"\n",
|
|
"\n",
|
|
" function run_callbacks() {\n",
|
|
" try {\n",
|
|
" root._bokeh_onload_callbacks.forEach(function(callback) {\n",
|
|
" if (callback != null)\n",
|
|
" callback();\n",
|
|
" });\n",
|
|
" } finally {\n",
|
|
" delete root._bokeh_onload_callbacks\n",
|
|
" }\n",
|
|
" console.debug(\"Bokeh: all callbacks have finished\");\n",
|
|
" }\n",
|
|
"\n",
|
|
" function load_libs(css_urls, js_urls, callback) {\n",
|
|
" if (css_urls == null) css_urls = [];\n",
|
|
" if (js_urls == null) js_urls = [];\n",
|
|
"\n",
|
|
" root._bokeh_onload_callbacks.push(callback);\n",
|
|
" if (root._bokeh_is_loading > 0) {\n",
|
|
" console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
|
|
" return null;\n",
|
|
" }\n",
|
|
" if (js_urls == null || js_urls.length === 0) {\n",
|
|
" run_callbacks();\n",
|
|
" return null;\n",
|
|
" }\n",
|
|
" console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
|
|
" root._bokeh_is_loading = css_urls.length + js_urls.length;\n",
|
|
"\n",
|
|
" function on_load() {\n",
|
|
" root._bokeh_is_loading--;\n",
|
|
" if (root._bokeh_is_loading === 0) {\n",
|
|
" console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n",
|
|
" run_callbacks()\n",
|
|
" }\n",
|
|
" }\n",
|
|
"\n",
|
|
" function on_error() {\n",
|
|
" console.error(\"failed to load \" + url);\n",
|
|
" }\n",
|
|
"\n",
|
|
" for (var i = 0; i < css_urls.length; i++) {\n",
|
|
" var url = css_urls[i];\n",
|
|
" const element = document.createElement(\"link\");\n",
|
|
" element.onload = on_load;\n",
|
|
" element.onerror = on_error;\n",
|
|
" element.rel = \"stylesheet\";\n",
|
|
" element.type = \"text/css\";\n",
|
|
" element.href = url;\n",
|
|
" console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n",
|
|
" document.body.appendChild(element);\n",
|
|
" }\n",
|
|
"\n",
|
|
" for (var i = 0; i < js_urls.length; i++) {\n",
|
|
" var url = js_urls[i];\n",
|
|
" var element = document.createElement('script');\n",
|
|
" element.onload = on_load;\n",
|
|
" element.onerror = on_error;\n",
|
|
" element.async = false;\n",
|
|
" element.src = url;\n",
|
|
" console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
|
|
" document.head.appendChild(element);\n",
|
|
" }\n",
|
|
" };var element = document.getElementById(\"1001\");\n",
|
|
" if (element == null) {\n",
|
|
" console.error(\"Bokeh: ERROR: autoload.js configured with elementid '1001' but no matching script tag was found. \")\n",
|
|
" return false;\n",
|
|
" }\n",
|
|
"\n",
|
|
" function inject_raw_css(css) {\n",
|
|
" const element = document.createElement(\"style\");\n",
|
|
" element.appendChild(document.createTextNode(css));\n",
|
|
" document.body.appendChild(element);\n",
|
|
" }\n",
|
|
"\n",
|
|
" var js_urls = [\"https://cdn.pydata.org/bokeh/release/bokeh-1.2.0.min.js\", \"https://cdn.pydata.org/bokeh/release/bokeh-widgets-1.2.0.min.js\", \"https://cdn.pydata.org/bokeh/release/bokeh-tables-1.2.0.min.js\", \"https://cdn.pydata.org/bokeh/release/bokeh-gl-1.2.0.min.js\"];\n",
|
|
" var css_urls = [\"https://cdn.pydata.org/bokeh/release/bokeh-1.2.0.min.css\", \"https://cdn.pydata.org/bokeh/release/bokeh-widgets-1.2.0.min.css\", \"https://cdn.pydata.org/bokeh/release/bokeh-tables-1.2.0.min.css\"];\n",
|
|
"\n",
|
|
" var inline_js = [\n",
|
|
" function(Bokeh) {\n",
|
|
" Bokeh.set_log_level(\"info\");\n",
|
|
" },\n",
|
|
" \n",
|
|
" function(Bokeh) {\n",
|
|
" \n",
|
|
" },\n",
|
|
" function(Bokeh) {} // ensure no trailing comma for IE\n",
|
|
" ];\n",
|
|
"\n",
|
|
" function run_inline_js() {\n",
|
|
" \n",
|
|
" if ((root.Bokeh !== undefined) || (force === true)) {\n",
|
|
" for (var i = 0; i < inline_js.length; i++) {\n",
|
|
" inline_js[i].call(root, root.Bokeh);\n",
|
|
" }if (force === true) {\n",
|
|
" display_loaded();\n",
|
|
" }} else if (Date.now() < root._bokeh_timeout) {\n",
|
|
" setTimeout(run_inline_js, 100);\n",
|
|
" } else if (!root._bokeh_failed_load) {\n",
|
|
" console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n",
|
|
" root._bokeh_failed_load = true;\n",
|
|
" } else if (force !== true) {\n",
|
|
" var cell = $(document.getElementById(\"1001\")).parents('.cell').data().cell;\n",
|
|
" cell.output_area.append_execute_result(NB_LOAD_WARNING)\n",
|
|
" }\n",
|
|
"\n",
|
|
" }\n",
|
|
"\n",
|
|
" if (root._bokeh_is_loading === 0) {\n",
|
|
" console.debug(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
|
|
" run_inline_js();\n",
|
|
" } else {\n",
|
|
" load_libs(css_urls, js_urls, function() {\n",
|
|
" console.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n",
|
|
" run_inline_js();\n",
|
|
" });\n",
|
|
" }\n",
|
|
"}(window));"
|
|
],
|
|
"application/vnd.bokehjs_load.v0+json": "\n(function(root) {\n function now() {\n return new Date();\n }\n\n var force = true;\n\n if (typeof root._bokeh_onload_callbacks === \"undefined\" || force === true) {\n root._bokeh_onload_callbacks = [];\n root._bokeh_is_loading = undefined;\n }\n\n \n\n \n if (typeof (root._bokeh_timeout) === \"undefined\" || force === true) {\n root._bokeh_timeout = Date.now() + 5000;\n root._bokeh_failed_load = false;\n }\n\n var NB_LOAD_WARNING = {'data': {'text/html':\n \"<div style='background-color: #fdd'>\\n\"+\n \"<p>\\n\"+\n \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n \"</p>\\n\"+\n \"<ul>\\n\"+\n \"<li>re-rerun `output_notebook()` to attempt to load from CDN again, or</li>\\n\"+\n \"<li>use INLINE resources instead, as so:</li>\\n\"+\n \"</ul>\\n\"+\n \"<code>\\n\"+\n \"from bokeh.resources import INLINE\\n\"+\n \"output_notebook(resources=INLINE)\\n\"+\n \"</code>\\n\"+\n \"</div>\"}};\n\n function display_loaded() {\n var el = document.getElementById(\"1001\");\n if (el != null) {\n el.textContent = \"BokehJS is loading...\";\n }\n if (root.Bokeh !== undefined) {\n if (el != null) {\n el.textContent = \"BokehJS \" + root.Bokeh.version + \" successfully loaded.\";\n }\n } else if (Date.now() < root._bokeh_timeout) {\n setTimeout(display_loaded, 100)\n }\n }\n\n\n function run_callbacks() {\n try {\n root._bokeh_onload_callbacks.forEach(function(callback) {\n if (callback != null)\n callback();\n });\n } finally {\n delete root._bokeh_onload_callbacks\n }\n console.debug(\"Bokeh: all callbacks have finished\");\n }\n\n function load_libs(css_urls, js_urls, callback) {\n if (css_urls == null) css_urls = [];\n if (js_urls == null) js_urls = [];\n\n root._bokeh_onload_callbacks.push(callback);\n if (root._bokeh_is_loading > 0) {\n console.debug(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n return null;\n }\n if (js_urls == null || js_urls.length === 0) {\n run_callbacks();\n return null;\n }\n console.debug(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n root._bokeh_is_loading = css_urls.length + js_urls.length;\n\n function on_load() {\n root._bokeh_is_loading--;\n if (root._bokeh_is_loading === 0) {\n console.debug(\"Bokeh: all BokehJS libraries/stylesheets loaded\");\n run_callbacks()\n }\n }\n\n function on_error() {\n console.error(\"failed to load \" + url);\n }\n\n for (var i = 0; i < css_urls.length; i++) {\n var url = css_urls[i];\n const element = document.createElement(\"link\");\n element.onload = on_load;\n element.onerror = on_error;\n element.rel = \"stylesheet\";\n element.type = \"text/css\";\n element.href = url;\n console.debug(\"Bokeh: injecting link tag for BokehJS stylesheet: \", url);\n document.body.appendChild(element);\n }\n\n for (var i = 0; i < js_urls.length; i++) {\n var url = js_urls[i];\n var element = document.createElement('script');\n element.onload = on_load;\n element.onerror = on_error;\n element.async = false;\n element.src = url;\n console.debug(\"Bokeh: injecting script tag for BokehJS library: \", url);\n document.head.appendChild(element);\n }\n };var element = document.getElementById(\"1001\");\n if (element == null) {\n console.error(\"Bokeh: ERROR: autoload.js configured with elementid '1001' but no matching script tag was found. \")\n return false;\n }\n\n function inject_raw_css(css) {\n const element = document.createElement(\"style\");\n element.appendChild(document.createTextNode(css));\n document.body.appendChild(element);\n }\n\n var js_urls = [\"https://cdn.pydata.org/bokeh/release/bokeh-1.2.0.min.js\", \"https://cdn.pydata.org/bokeh/release/bokeh-widgets-1.2.0.min.js\", \"https://cdn.pydata.org/bokeh/release/bokeh-tables-1.2.0.min.js\", \"https://cdn.pydata.org/bokeh/release/bokeh-gl-1.2.0.min.js\"];\n var css_urls = [\"https://cdn.pydata.org/bokeh/release/bokeh-1.2.0.min.css\", \"https://cdn.pydata.org/bokeh/release/bokeh-widgets-1.2.0.min.css\", \"https://cdn.pydata.org/bokeh/release/bokeh-tables-1.2.0.min.css\"];\n\n var inline_js = [\n function(Bokeh) {\n Bokeh.set_log_level(\"info\");\n },\n \n function(Bokeh) {\n \n },\n function(Bokeh) {} // ensure no trailing comma for IE\n ];\n\n function run_inline_js() {\n \n if ((root.Bokeh !== undefined) || (force === true)) {\n for (var i = 0; i < inline_js.length; i++) {\n inline_js[i].call(root, root.Bokeh);\n }if (force === true) {\n display_loaded();\n }} else if (Date.now() < root._bokeh_timeout) {\n setTimeout(run_inline_js, 100);\n } else if (!root._bokeh_failed_load) {\n console.log(\"Bokeh: BokehJS failed to load within specified timeout.\");\n root._bokeh_failed_load = true;\n } else if (force !== true) {\n var cell = $(document.getElementById(\"1001\")).parents('.cell').data().cell;\n cell.output_area.append_execute_result(NB_LOAD_WARNING)\n }\n\n }\n\n if (root._bokeh_is_loading === 0) {\n console.debug(\"Bokeh: BokehJS loaded, going straight to plotting\");\n run_inline_js();\n } else {\n load_libs(css_urls, js_urls, function() {\n console.debug(\"Bokeh: BokehJS plotting callback run at\", now());\n run_inline_js();\n });\n }\n}(window));"
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
" <div class=\"bk-root\" id=\"41d2d810-e16b-450e-bef1-6a7195d4814e\" data-root-id=\"1091\"></div>\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"application/javascript": [
|
|
"(function(root) {\n",
|
|
" function embed_document(root) {\n",
|
|
" \n",
|
|
" var docs_json = {\"0f496f8b-3d3b-4a08-b272-388ce8d2eb2e\":{\"roots\":{\"references\":[{\"attributes\":{\"children\":[{\"id\":\"1003\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"id\":\"1052\",\"subtype\":\"Figure\",\"type\":\"Plot\"}]},\"id\":\"1091\",\"type\":\"Row\"},{\"attributes\":{},\"id\":\"1020\",\"type\":\"BasicTicker\"},{\"attributes\":{\"overlay\":{\"id\":\"1104\",\"type\":\"BoxAnnotation\"}},\"id\":\"1075\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"callback\":null},\"id\":\"1006\",\"type\":\"DataRange1d\"},{\"attributes\":{\"below\":[{\"id\":\"1063\",\"type\":\"LinearAxis\"}],\"center\":[{\"id\":\"1067\",\"type\":\"Grid\"},{\"id\":\"1072\",\"type\":\"Grid\"}],\"left\":[{\"id\":\"1068\",\"type\":\"LinearAxis\"}],\"plot_height\":450,\"plot_width\":450,\"renderers\":[{\"id\":\"1089\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"1053\",\"type\":\"Title\"},\"toolbar\":{\"id\":\"1079\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"1055\",\"type\":\"DataRange1d\"},\"x_scale\":{\"id\":\"1059\",\"type\":\"LinearScale\"},\"y_range\":{\"id\":\"1057\",\"type\":\"DataRange1d\"},\"y_scale\":{\"id\":\"1061\",\"type\":\"LinearScale\"}},\"id\":\"1052\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"dimension\":1,\"ticker\":{\"id\":\"1020\",\"type\":\"BasicTicker\"}},\"id\":\"1023\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"1078\",\"type\":\"HelpTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"1024\",\"type\":\"PanTool\"},{\"id\":\"1025\",\"type\":\"WheelZoomTool\"},{\"id\":\"1026\",\"type\":\"BoxZoomTool\"},{\"id\":\"1027\",\"type\":\"SaveTool\"},{\"id\":\"1028\",\"type\":\"ResetTool\"},{\"id\":\"1029\",\"type\":\"HelpTool\"}]},\"id\":\"1030\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"1024\",\"type\":\"PanTool\"},{\"attributes\":{\"align\":\"center\",\"text\":\"Duration histogram\"},\"id\":\"1053\",\"type\":\"Title\"},{\"attributes\":{\"line_alpha\":0.1,\"line_color\":\"#1f77b4\",\"line_width\":2,\"x\":{\"field\":\"timestamp\"},\"y\":{\"field\":\"duration\"}},\"id\":\"1039\",\"type\":\"Line\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"1073\",\"type\":\"PanTool\"},{\"id\":\"1074\",\"type\":\"WheelZoomTool\"},{\"id\":\"1075\",\"type\":\"BoxZoomTool\"},{\"id\":\"1076\",\"type\":\"SaveTool\"},{\"id\":\"1077\",\"type\":\"ResetTool\"},{\"id\":\"1078\",\"type\":\"HelpTool\"}]},\"id\":\"1079\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"1012\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"1025\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"below\":[{\"id\":\"1014\",\"type\":\"LinearAxis\"}],\"center\":[{\"id\":\"1018\",\"type\":\"Grid\"},{\"id\":\"1023\",\"type\":\"Grid\"},{\"id\":\"1048\",\"type\":\"Legend\"}],\"left\":[{\"id\":\"1019\",\"type\":\"LinearAxis\"}],\"plot_height\":450,\"plot_width\":450,\"renderers\":[{\"id\":\"1040\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"1004\",\"type\":\"Title\"},\"toolbar\":{\"id\":\"1030\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"1006\",\"type\":\"DataRange1d\"},\"x_scale\":{\"id\":\"1010\",\"type\":\"LinearScale\"},\"y_range\":{\"id\":\"1008\",\"type\":\"DataRange1d\"},\"y_scale\":{\"id\":\"1012\",\"type\":\"LinearScale\"}},\"id\":\"1003\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"callback\":null},\"id\":\"1055\",\"type\":\"DataRange1d\"},{\"attributes\":{\"bottom\":{\"value\":0},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1f77b4\"},\"left\":{\"field\":\"left\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"right\":{\"field\":\"right\"},\"top\":{\"field\":\"top\"}},\"id\":\"1088\",\"type\":\"Quad\"},{\"attributes\":{\"overlay\":{\"id\":\"1047\",\"type\":\"BoxAnnotation\"}},\"id\":\"1026\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"callback\":null},\"id\":\"1057\",\"type\":\"DataRange1d\"},{\"attributes\":{\"data_source\":{\"id\":\"1086\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"1087\",\"type\":\"Quad\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"1088\",\"type\":\"Quad\"},\"selection_glyph\":null,\"view\":{\"id\":\"1090\",\"type\":\"CDSView\"}},\"id\":\"1089\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"1027\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"1059\",\"type\":\"LinearScale\"},{\"attributes\":{\"source\":{\"id\":\"1086\",\"type\":\"ColumnDataSource\"}},\"id\":\"1090\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"1028\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"1061\",\"type\":\"LinearScale\"},{\"attributes\":{\"line_color\":\"#1f77b4\",\"line_width\":2,\"x\":{\"field\":\"timestamp\"},\"y\":{\"field\":\"duration\"}},\"id\":\"1038\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"1029\",\"type\":\"HelpTool\"},{\"attributes\":{\"axis_label\":\"duration (ms)\",\"formatter\":{\"id\":\"1098\",\"type\":\"BasicTickFormatter\"},\"ticker\":{\"id\":\"1064\",\"type\":\"BasicTicker\"}},\"id\":\"1063\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"1015\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"1098\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"ticker\":{\"id\":\"1015\",\"type\":\"BasicTicker\"}},\"id\":\"1018\",\"type\":\"Grid\"},{\"attributes\":{\"axis_label\":\"start (2019-07-08 10:07)\",\"formatter\":{\"id\":\"1050\",\"type\":\"DatetimeTickFormatter\"},\"ticker\":{\"id\":\"1015\",\"type\":\"BasicTicker\"}},\"id\":\"1014\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"1077\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"1064\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"1100\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"ticker\":{\"id\":\"1064\",\"type\":\"BasicTicker\"}},\"id\":\"1067\",\"type\":\"Grid\"},{\"attributes\":{\"data_source\":{\"id\":\"1002\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"1038\",\"type\":\"Line\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"1039\",\"type\":\"Line\"},\"selection_glyph\":null,\"view\":{\"id\":\"1041\",\"type\":\"CDSView\"}},\"id\":\"1040\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"source\":{\"id\":\"1002\",\"type\":\"ColumnDataSource\"}},\"id\":\"1041\",\"type\":\"CDSView\"},{\"attributes\":{\"axis_label\":\"frequency\",\"formatter\":{\"id\":\"1100\",\"type\":\"BasicTickFormatter\"},\"ticker\":{\"id\":\"1069\",\"type\":\"BasicTicker\"}},\"id\":\"1068\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"1102\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"axis_label\":\"duration (ms)\",\"formatter\":{\"id\":\"1046\",\"type\":\"BasicTickFormatter\"},\"ticker\":{\"id\":\"1020\",\"type\":\"BasicTicker\"}},\"id\":\"1019\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"1076\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"1069\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"1103\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"1046\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"dimension\":1,\"ticker\":{\"id\":\"1069\",\"type\":\"BasicTicker\"}},\"id\":\"1072\",\"type\":\"Grid\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"1104\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"align\":\"center\",\"text\":\"Timer -- tid: 17208, period: 500 ms\"},\"id\":\"1004\",\"type\":\"Title\"},{\"attributes\":{\"callback\":null,\"data\":{\"left\":{\"__ndarray__\":\"lzrI68GkmD8eBNMfUOyjP/HqwUk/hqs/4mjYOReQsT9L3M/ODl21P7VPx2MGKrk/HsO++P32vD9EG9vG+mHAP/jUVpF2SMI/rY7SW/IuxD8=\",\"dtype\":\"float64\",\"shape\":[10]},\"right\":{\"__ndarray__\":\"HgTTH1Dsoz/x6sFJP4arP+Jo2DkXkLE/S9zPzg5dtT+1T8djBiq5Px7Dvvj99rw/RBvbxvphwD/41FaRdkjCP62O0lvyLsQ/YkhOJm4Vxj8=\",\"dtype\":\"float64\",\"shape\":[10]},\"top\":[4,1,39,4,5,2,0,0,0,1]},\"selected\":{\"id\":\"1106\",\"type\":\"Selection\"},\"selection_policy\":{\"id\":\"1105\",\"type\":\"UnionRenderers\"}},\"id\":\"1086\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"1047\",\"type\":\"BoxAnnotation\"},{\"attributes\":{},\"id\":\"1105\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"items\":[{\"id\":\"1049\",\"type\":\"LegendItem\"}],\"label_text_font_size\":{\"value\":\"11px\"}},\"id\":\"1048\",\"type\":\"Legend\"},{\"attributes\":{\"callback\":null,\"data\":{\"duration\":{\"__ndarray__\":\"MuVDUDV6tT+CAu/k02OrP+qxLQPOUrI/hxkaTwRxrj9dwqG3eHivP3Y25J8ZxLM/jX40nDI3rz9tkbQbfcyvP4c2ABsQIa4/Ho1D/S5srT95k9+ik6WuP+T4odKIma0/bf5fdeRIrz9eSfJc34e3Pyld+pekMq0/0uC2tvC8rD8gmnlyTYGwP7zrbMg/M6A/0lYlkX2QrT/bGDvhJTitP5c6yOvBpJg/aCWt+IbCrz9UVWggls2sP3HHm/wWnaw/uvjbniCxrT8EAwgfSrSsPyhlUkMbgK0/Zvol4q3zrz+bVDTW/s6uP842N6YnLLU/QRGLGHYYtz+Q+BVruMi5P4XsvI3Njrw/xXHg1XJnrj/CEg8om3KtP/PGSWHe47g/kNeDSfHxsT86eCY0SSyxPzHPSlrxDbE/qP+s+fGXrj+7K7tgcM2tP75O6svSTq0/nIcTmE7rrj9iSE4mbhXGPzKOkewRaq4/tJPBUfLquD91WUxsPq6tP7X5f9WRI60/KVyPwvUonD8C9WbUfJWwP+QPBp57D68/cQFolC79mz80LbEyGvmsP+f9f5wwYaw/nKVkOQmlrz+kiXeAJy2wPw==\",\"dtype\":\"float64\",\"shape\":[56]},\"index\":[0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99,102,105,108,111,114,117,120,123,126,129,132,135,138,141,144,147,150,153,156,159,162,165],\"timestamp\":{\"__ndarray__\":\"8vZD1xC9dkLZNmPXEL12Qid3gtcQvXZCureh1xC9dkIM+MDXEL12Qns44NcQvXZCEnn/1xC9dkKRuR7YEL12QuP5PdgQvXZCPTpd2BC9dkKDenzYEL12Qva6m9gQvXZCYPu62BC9dkLDO9rYEL12Qk58+dgQvXZC6bwY2RC9dkIr/TfZEL12Qtk8V9kQvXZC43122RC9dkJCvpXZEL12QvD9tNkQvXZC/j7U2RC9dkJ9f/PZEL12QlbAEtoQvXZCVgAy2hC9dkKcQFHaEL12QhKBcNoQvXZCN8GP2hC9dkIIAq/aEL12QkJCztoQvXZC0YLt2hC9dkL+wgzbEL12QpYDLNsQvXZCOURL2xC9dkKThGrbEL12Qu7EidsQvXZCXAWp2xC9dkIzRcjbEL12QtOF59sQvXZC0cYG3BC9dkLVBibcEL12Qv5GRdwQvXZCfYdk3BC9dkLwx4PcEL12QkYIo9wQvXZCsEjC3BC9dkLDieHcEL12QnHJAN0QvXZCRAkg3RC9dkJOSj/dEL12QuWKXt0QvXZCpMp93RC9dkJ1C53dEL12QuNLvN0QvXZCTozb3RC9dkLFzPrdEL12Qg==\",\"dtype\":\"float64\",\"shape\":[56]}},\"selected\":{\"id\":\"1103\",\"type\":\"Selection\"},\"selection_policy\":{\"id\":\"1102\",\"type\":\"UnionRenderers\"}},\"id\":\"1002\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"1106\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"1010\",\"type\":\"LinearScale\"},{\"attributes\":{\"label\":{\"value\":\"timer\"},\"renderers\":[{\"id\":\"1040\",\"type\":\"GlyphRenderer\"}]},\"id\":\"1049\",\"type\":\"LegendItem\"},{\"attributes\":{\"bottom\":{\"value\":0},\"fill_color\":{\"value\":\"#1f77b4\"},\"left\":{\"field\":\"left\"},\"line_color\":{\"value\":\"#1f77b4\"},\"right\":{\"field\":\"right\"},\"top\":{\"field\":\"top\"}},\"id\":\"1087\",\"type\":\"Quad\"},{\"attributes\":{},\"id\":\"1073\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"1050\",\"type\":\"DatetimeTickFormatter\"},{\"attributes\":{},\"id\":\"1074\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"callback\":null},\"id\":\"1008\",\"type\":\"DataRange1d\"}],\"root_ids\":[\"1091\"]},\"title\":\"Bokeh Application\",\"version\":\"1.2.0\"}};\n",
|
|
" var render_items = [{\"docid\":\"0f496f8b-3d3b-4a08-b272-388ce8d2eb2e\",\"roots\":{\"1091\":\"41d2d810-e16b-450e-bef1-6a7195d4814e\"}}];\n",
|
|
" root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
|
|
"\n",
|
|
" }\n",
|
|
" if (root.Bokeh !== undefined) {\n",
|
|
" embed_document(root);\n",
|
|
" } else {\n",
|
|
" var attempts = 0;\n",
|
|
" var timer = setInterval(function(root) {\n",
|
|
" if (root.Bokeh !== undefined) {\n",
|
|
" embed_document(root);\n",
|
|
" clearInterval(timer);\n",
|
|
" }\n",
|
|
" attempts++;\n",
|
|
" if (attempts > 100) {\n",
|
|
" console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
|
|
" clearInterval(timer);\n",
|
|
" }\n",
|
|
" }, 10, root)\n",
|
|
" }\n",
|
|
"})(window);"
|
|
],
|
|
"application/vnd.bokehjs_exec.v0+json": ""
|
|
},
|
|
"metadata": {
|
|
"application/vnd.bokehjs_exec.v0+json": {
|
|
"id": "1091"
|
|
}
|
|
},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
" <div class=\"bk-root\" id=\"4ef7c680-5004-4c0e-a70f-763f37b7cf27\" data-root-id=\"1286\"></div>\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"application/javascript": [
|
|
"(function(root) {\n",
|
|
" function embed_document(root) {\n",
|
|
" \n",
|
|
" var docs_json = {\"c3b8921e-13a7-4188-8a68-08061b0fd995\":{\"roots\":{\"references\":[{\"attributes\":{\"children\":[{\"id\":\"1198\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"id\":\"1247\",\"subtype\":\"Figure\",\"type\":\"Plot\"}]},\"id\":\"1286\",\"type\":\"Row\"},{\"attributes\":{\"below\":[{\"id\":\"1258\",\"type\":\"LinearAxis\"}],\"center\":[{\"id\":\"1262\",\"type\":\"Grid\"},{\"id\":\"1267\",\"type\":\"Grid\"}],\"left\":[{\"id\":\"1263\",\"type\":\"LinearAxis\"}],\"plot_height\":450,\"plot_width\":450,\"renderers\":[{\"id\":\"1284\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"1248\",\"type\":\"Title\"},\"toolbar\":{\"id\":\"1274\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"1250\",\"type\":\"DataRange1d\"},\"x_scale\":{\"id\":\"1254\",\"type\":\"LinearScale\"},\"y_range\":{\"id\":\"1252\",\"type\":\"DataRange1d\"},\"y_scale\":{\"id\":\"1256\",\"type\":\"LinearScale\"}},\"id\":\"1247\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"line_alpha\":0.1,\"line_color\":\"#1f77b4\",\"line_width\":2,\"x\":{\"field\":\"timestamp\"},\"y\":{\"field\":\"duration\"}},\"id\":\"1234\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"1264\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"1312\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"items\":[{\"id\":\"1244\",\"type\":\"LegendItem\"}],\"label_text_font_size\":{\"value\":\"11px\"}},\"id\":\"1243\",\"type\":\"Legend\"},{\"attributes\":{\"dimension\":1,\"ticker\":{\"id\":\"1264\",\"type\":\"BasicTicker\"}},\"id\":\"1267\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"1313\",\"type\":\"Selection\"},{\"attributes\":{\"line_color\":\"#1f77b4\",\"line_width\":2,\"x\":{\"field\":\"timestamp\"},\"y\":{\"field\":\"duration\"}},\"id\":\"1233\",\"type\":\"Line\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"1314\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"callback\":null,\"data\":{\"left\":{\"__ndarray__\":\"Sino9pLGoD/nOo20VN6qP0ImGTkLe7I/EK/rF+yGtz/fN772zJK8P1ZgyOpWz8A/vqQxWkdVwz8m6ZrJN9vFP4wtBDkoYcg/9HFtqBjnyj8=\",\"dtype\":\"float64\",\"shape\":[10]},\"right\":{\"__ndarray__\":\"5zqNtFTeqj9CJhk5C3uyPxCv6xfshrc/3ze+9sySvD9WYMjqVs/AP76kMVpHVcM/JumayTfbxT+MLQQ5KGHIP/RxbagY58o/W7bWFwltzT8=\",\"dtype\":\"float64\",\"shape\":[10]},\"top\":[4,0,14,28,8,1,0,0,0,1]},\"selected\":{\"id\":\"1316\",\"type\":\"Selection\"},\"selection_policy\":{\"id\":\"1315\",\"type\":\"UnionRenderers\"}},\"id\":\"1281\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"align\":\"center\",\"text\":\"Duration histogram\"},\"id\":\"1248\",\"type\":\"Title\"},{\"attributes\":{\"callback\":null},\"id\":\"1252\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"1219\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"1315\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"1268\",\"type\":\"PanTool\"},{\"id\":\"1269\",\"type\":\"WheelZoomTool\"},{\"id\":\"1270\",\"type\":\"BoxZoomTool\"},{\"id\":\"1271\",\"type\":\"SaveTool\"},{\"id\":\"1272\",\"type\":\"ResetTool\"},{\"id\":\"1273\",\"type\":\"HelpTool\"}]},\"id\":\"1274\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"1220\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"1316\",\"type\":\"Selection\"},{\"attributes\":{},\"id\":\"1268\",\"type\":\"PanTool\"},{\"attributes\":{\"callback\":null},\"id\":\"1201\",\"type\":\"DataRange1d\"},{\"attributes\":{\"callback\":null},\"id\":\"1250\",\"type\":\"DataRange1d\"},{\"attributes\":{\"overlay\":{\"id\":\"1242\",\"type\":\"BoxAnnotation\"}},\"id\":\"1221\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"callback\":null},\"id\":\"1203\",\"type\":\"DataRange1d\"},{\"attributes\":{\"label\":{\"value\":\"void (PongNode::?)(std::shared_ptr<std_msgs::msg::String>)\"},\"renderers\":[{\"id\":\"1235\",\"type\":\"GlyphRenderer\"}]},\"id\":\"1244\",\"type\":\"LegendItem\"},{\"attributes\":{},\"id\":\"1222\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"1269\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"1205\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"1223\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"1210\",\"type\":\"BasicTicker\"},{\"attributes\":{\"overlay\":{\"id\":\"1314\",\"type\":\"BoxAnnotation\"}},\"id\":\"1270\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"1219\",\"type\":\"PanTool\"},{\"id\":\"1220\",\"type\":\"WheelZoomTool\"},{\"id\":\"1221\",\"type\":\"BoxZoomTool\"},{\"id\":\"1222\",\"type\":\"SaveTool\"},{\"id\":\"1223\",\"type\":\"ResetTool\"},{\"id\":\"1224\",\"type\":\"HelpTool\"}]},\"id\":\"1225\",\"type\":\"Toolbar\"},{\"attributes\":{\"axis_label\":\"duration (ms)\",\"formatter\":{\"id\":\"1241\",\"type\":\"BasicTickFormatter\"},\"ticker\":{\"id\":\"1215\",\"type\":\"BasicTicker\"}},\"id\":\"1214\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"1271\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"1224\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"1272\",\"type\":\"ResetTool\"},{\"attributes\":{\"align\":\"center\",\"text\":\"Subscription -- node: test_pong, tid: 17209, topic: /ping\"},\"id\":\"1199\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"1273\",\"type\":\"HelpTool\"},{\"attributes\":{\"data_source\":{\"id\":\"1197\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"1233\",\"type\":\"Line\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"1234\",\"type\":\"Line\"},\"selection_glyph\":null,\"view\":{\"id\":\"1236\",\"type\":\"CDSView\"}},\"id\":\"1235\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"source\":{\"id\":\"1197\",\"type\":\"ColumnDataSource\"}},\"id\":\"1236\",\"type\":\"CDSView\"},{\"attributes\":{\"bottom\":{\"value\":0},\"fill_color\":{\"value\":\"#1f77b4\"},\"left\":{\"field\":\"left\"},\"line_color\":{\"value\":\"#1f77b4\"},\"right\":{\"field\":\"right\"},\"top\":{\"field\":\"top\"}},\"id\":\"1282\",\"type\":\"Quad\"},{\"attributes\":{},\"id\":\"1207\",\"type\":\"LinearScale\"},{\"attributes\":{\"bottom\":{\"value\":0},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1f77b4\"},\"left\":{\"field\":\"left\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"right\":{\"field\":\"right\"},\"top\":{\"field\":\"top\"}},\"id\":\"1283\",\"type\":\"Quad\"},{\"attributes\":{\"axis_label\":\"start (2019-07-08 10:07)\",\"formatter\":{\"id\":\"1245\",\"type\":\"DatetimeTickFormatter\"},\"ticker\":{\"id\":\"1210\",\"type\":\"BasicTicker\"}},\"id\":\"1209\",\"type\":\"LinearAxis\"},{\"attributes\":{\"below\":[{\"id\":\"1209\",\"type\":\"LinearAxis\"}],\"center\":[{\"id\":\"1213\",\"type\":\"Grid\"},{\"id\":\"1218\",\"type\":\"Grid\"},{\"id\":\"1243\",\"type\":\"Legend\"}],\"left\":[{\"id\":\"1214\",\"type\":\"LinearAxis\"}],\"plot_height\":450,\"plot_width\":450,\"renderers\":[{\"id\":\"1235\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"1199\",\"type\":\"Title\"},\"toolbar\":{\"id\":\"1225\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"1201\",\"type\":\"DataRange1d\"},\"x_scale\":{\"id\":\"1205\",\"type\":\"LinearScale\"},\"y_range\":{\"id\":\"1203\",\"type\":\"DataRange1d\"},\"y_scale\":{\"id\":\"1207\",\"type\":\"LinearScale\"}},\"id\":\"1198\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{},\"id\":\"1241\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"ticker\":{\"id\":\"1210\",\"type\":\"BasicTicker\"}},\"id\":\"1213\",\"type\":\"Grid\"},{\"attributes\":{\"data_source\":{\"id\":\"1281\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"1282\",\"type\":\"Quad\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"1283\",\"type\":\"Quad\"},\"selection_glyph\":null,\"view\":{\"id\":\"1285\",\"type\":\"CDSView\"}},\"id\":\"1284\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"1242\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"source\":{\"id\":\"1281\",\"type\":\"ColumnDataSource\"}},\"id\":\"1285\",\"type\":\"CDSView\"},{\"attributes\":{\"axis_label\":\"frequency\",\"formatter\":{\"id\":\"1310\",\"type\":\"BasicTickFormatter\"},\"ticker\":{\"id\":\"1264\",\"type\":\"BasicTicker\"}},\"id\":\"1263\",\"type\":\"LinearAxis\"},{\"attributes\":{\"ticker\":{\"id\":\"1259\",\"type\":\"BasicTicker\"}},\"id\":\"1262\",\"type\":\"Grid\"},{\"attributes\":{\"axis_label\":\"duration (ms)\",\"formatter\":{\"id\":\"1308\",\"type\":\"BasicTickFormatter\"},\"ticker\":{\"id\":\"1259\",\"type\":\"BasicTicker\"}},\"id\":\"1258\",\"type\":\"LinearAxis\"},{\"attributes\":{\"callback\":null,\"data\":{\"duration\":{\"__ndarray__\":\"W7bWFwltzT9KtrqcEhC3P1X4M7xZg7c/wmwCDMuftz/VQV4PJsW3P0/qy9JOzbk/lBeZgF8juT+1pQ7yejC5P7tIoSx8fbk/WK63zVSItz8epKfIIeK2P7L1DOGYZb8/DDz3Hi45uj8jE/BrJAnAP8r7OJojK7c/7WRwlLw6vz+Kc9TRcTXCP76FdePdkak/twvNdRppuT932a873Xm+P0op6PaSxqA/t376z5oftz8vTRHg9C66PycW+IpuvbY/INJvXwfOuT96UbtfBfi2PzPC24MQkLc/mx9/aVGfuD/6Qsh5/x+7P5Ihx9YzhL8/9MDHYMWpuj9t4Xmp2Ji3P+epDrkZbrg/SrIOR1fptj+Txf1HpkO3P0kQroBCPbk/7idjfJi9vD/qlh3iH7a8P0uPpnoy/7w/nKVkOQmltz/LuRRXlX23P0DBxYoaTLc/2quPh767uT/2lQfpKXK4P3zSiQRTzbg/EVX4M7xZuz9DcjJxqyC6Pxb3H5kOnbo/RwINNnUepT8rL/mf/N23Pz/G3LWEfLw/i6ceaXBboz/Ln28Lluq2PxIWFXE6ybY/BmhbzTrjtz89X7NcNjq3Pw==\",\"dtype\":\"float64\",\"shape\":[56]},\"index\":[1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112,115,118,121,124,127,130,133,136,139,142,145,148,151,154,157,160,163,166],\"timestamp\":{\"__ndarray__\":\"wf5D1xC9dkLDO2PXEL12Qu58gtcQvXZCWL2h1xC9dkK2/cDXEL12Qrw+4NcQvXZCJ3//1xC9dkLsvx7YEL12Qp7/PdgQvXZC2z9d2BC9dkKsgHzYEL12Qm3Bm9gQvXZCxwG72BC9dkIEQtrYEL12QgiC+dgQvXZC5cIY2RC9dkLlAjjZEL12QhRAV9kQvXZC0YZ22RC9dkKJw5XZEL12QjEAtdkQvXZCH0XU2RC9dkLjhfPZEL12QoHHEtoQvXZCDAYy2hC9dkLlRlHaEL12QumGcNoQvXZCy8eP2hC9dkIlCK/aEL12QjNJztoQvXZCRInt2hC9dkJgyQzbEL12Qh0KLNsQvXZCAEpL2xC9dkItimrbEL12QhfLidsQvXZCIQyp2xC9dkLsS8jbEL12Qn2L59sQvXZCEs0G3BC9dkL6DCbcEL12QvJMRdwQvXZCx41k3BC9dkInz4PcEL12QlIOo9wQvXZCWE/C3BC9dkJ5j+HcEL12QiPPAN0QvXZC9Asg3RC9dkL4Tz/dEL12QuORXt0QvXZCls193RC9dkI/EZ3dEL12QmRRvN0QvXZCBJLb3RC9dkI/0/rdEL12Qg==\",\"dtype\":\"float64\",\"shape\":[56]}},\"selected\":{\"id\":\"1313\",\"type\":\"Selection\"},\"selection_policy\":{\"id\":\"1312\",\"type\":\"UnionRenderers\"}},\"id\":\"1197\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"1254\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"1245\",\"type\":\"DatetimeTickFormatter\"},{\"attributes\":{},\"id\":\"1215\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"1256\",\"type\":\"LinearScale\"},{\"attributes\":{\"dimension\":1,\"ticker\":{\"id\":\"1215\",\"type\":\"BasicTicker\"}},\"id\":\"1218\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"1308\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"1310\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"1259\",\"type\":\"BasicTicker\"}],\"root_ids\":[\"1286\"]},\"title\":\"Bokeh Application\",\"version\":\"1.2.0\"}};\n",
|
|
" var render_items = [{\"docid\":\"c3b8921e-13a7-4188-8a68-08061b0fd995\",\"roots\":{\"1286\":\"4ef7c680-5004-4c0e-a70f-763f37b7cf27\"}}];\n",
|
|
" root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
|
|
"\n",
|
|
" }\n",
|
|
" if (root.Bokeh !== undefined) {\n",
|
|
" embed_document(root);\n",
|
|
" } else {\n",
|
|
" var attempts = 0;\n",
|
|
" var timer = setInterval(function(root) {\n",
|
|
" if (root.Bokeh !== undefined) {\n",
|
|
" embed_document(root);\n",
|
|
" clearInterval(timer);\n",
|
|
" }\n",
|
|
" attempts++;\n",
|
|
" if (attempts > 100) {\n",
|
|
" console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
|
|
" clearInterval(timer);\n",
|
|
" }\n",
|
|
" }, 10, root)\n",
|
|
" }\n",
|
|
"})(window);"
|
|
],
|
|
"application/vnd.bokehjs_exec.v0+json": ""
|
|
},
|
|
"metadata": {
|
|
"application/vnd.bokehjs_exec.v0+json": {
|
|
"id": "1286"
|
|
}
|
|
},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"text/html": [
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
"\n",
|
|
" <div class=\"bk-root\" id=\"7208f3dd-65e6-4954-8e38-05269690c9c3\" data-root-id=\"1496\"></div>\n"
|
|
]
|
|
},
|
|
"metadata": {},
|
|
"output_type": "display_data"
|
|
},
|
|
{
|
|
"data": {
|
|
"application/javascript": [
|
|
"(function(root) {\n",
|
|
" function embed_document(root) {\n",
|
|
" \n",
|
|
" var docs_json = {\"370a5e1d-5b2b-45e2-96cc-9854c7e6912e\":{\"roots\":{\"references\":[{\"attributes\":{\"children\":[{\"id\":\"1408\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"id\":\"1457\",\"subtype\":\"Figure\",\"type\":\"Plot\"}]},\"id\":\"1496\",\"type\":\"Row\"},{\"attributes\":{},\"id\":\"1430\",\"type\":\"WheelZoomTool\"},{\"attributes\":{},\"id\":\"1538\",\"type\":\"Selection\"},{\"attributes\":{\"callback\":null},\"id\":\"1460\",\"type\":\"DataRange1d\"},{\"attributes\":{\"overlay\":{\"id\":\"1452\",\"type\":\"BoxAnnotation\"}},\"id\":\"1431\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"1539\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"callback\":null},\"id\":\"1462\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"1432\",\"type\":\"SaveTool\"},{\"attributes\":{},\"id\":\"1540\",\"type\":\"UnionRenderers\"},{\"attributes\":{},\"id\":\"1464\",\"type\":\"LinearScale\"},{\"attributes\":{\"callback\":null},\"id\":\"1411\",\"type\":\"DataRange1d\"},{\"attributes\":{},\"id\":\"1433\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"1541\",\"type\":\"Selection\"},{\"attributes\":{\"align\":\"center\",\"text\":\"Subscription -- node: test_ping, tid: 17208, topic: /pong\"},\"id\":\"1409\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"1466\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"1434\",\"type\":\"HelpTool\"},{\"attributes\":{\"axis_label\":\"duration (ms)\",\"formatter\":{\"id\":\"1533\",\"type\":\"BasicTickFormatter\"},\"ticker\":{\"id\":\"1469\",\"type\":\"BasicTicker\"}},\"id\":\"1468\",\"type\":\"LinearAxis\"},{\"attributes\":{\"line_alpha\":0.1,\"line_color\":\"#1f77b4\",\"line_width\":2,\"x\":{\"field\":\"timestamp\"},\"y\":{\"field\":\"duration\"}},\"id\":\"1444\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"1469\",\"type\":\"BasicTicker\"},{\"attributes\":{\"below\":[{\"id\":\"1419\",\"type\":\"LinearAxis\"}],\"center\":[{\"id\":\"1423\",\"type\":\"Grid\"},{\"id\":\"1428\",\"type\":\"Grid\"},{\"id\":\"1453\",\"type\":\"Legend\"}],\"left\":[{\"id\":\"1424\",\"type\":\"LinearAxis\"}],\"plot_height\":450,\"plot_width\":450,\"renderers\":[{\"id\":\"1445\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"1409\",\"type\":\"Title\"},\"toolbar\":{\"id\":\"1435\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"1411\",\"type\":\"DataRange1d\"},\"x_scale\":{\"id\":\"1415\",\"type\":\"LinearScale\"},\"y_range\":{\"id\":\"1413\",\"type\":\"DataRange1d\"},\"y_scale\":{\"id\":\"1417\",\"type\":\"LinearScale\"}},\"id\":\"1408\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"callback\":null},\"id\":\"1413\",\"type\":\"DataRange1d\"},{\"attributes\":{\"ticker\":{\"id\":\"1469\",\"type\":\"BasicTicker\"}},\"id\":\"1472\",\"type\":\"Grid\"},{\"attributes\":{\"data_source\":{\"id\":\"1407\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"1443\",\"type\":\"Line\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"1444\",\"type\":\"Line\"},\"selection_glyph\":null,\"view\":{\"id\":\"1446\",\"type\":\"CDSView\"}},\"id\":\"1445\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"1415\",\"type\":\"LinearScale\"},{\"attributes\":{\"source\":{\"id\":\"1407\",\"type\":\"ColumnDataSource\"}},\"id\":\"1446\",\"type\":\"CDSView\"},{\"attributes\":{},\"id\":\"1537\",\"type\":\"UnionRenderers\"},{\"attributes\":{\"axis_label\":\"frequency\",\"formatter\":{\"id\":\"1535\",\"type\":\"BasicTickFormatter\"},\"ticker\":{\"id\":\"1474\",\"type\":\"BasicTicker\"}},\"id\":\"1473\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"1483\",\"type\":\"HelpTool\"},{\"attributes\":{},\"id\":\"1417\",\"type\":\"LinearScale\"},{\"attributes\":{},\"id\":\"1474\",\"type\":\"BasicTicker\"},{\"attributes\":{\"dimension\":1,\"ticker\":{\"id\":\"1474\",\"type\":\"BasicTicker\"}},\"id\":\"1477\",\"type\":\"Grid\"},{\"attributes\":{},\"id\":\"1481\",\"type\":\"SaveTool\"},{\"attributes\":{\"axis_label\":\"start (2019-07-08 10:07)\",\"formatter\":{\"id\":\"1455\",\"type\":\"DatetimeTickFormatter\"},\"ticker\":{\"id\":\"1420\",\"type\":\"BasicTicker\"}},\"id\":\"1419\",\"type\":\"LinearAxis\"},{\"attributes\":{},\"id\":\"1451\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"bottom\":{\"value\":0},\"fill_color\":{\"value\":\"#1f77b4\"},\"left\":{\"field\":\"left\"},\"line_color\":{\"value\":\"#1f77b4\"},\"right\":{\"field\":\"right\"},\"top\":{\"field\":\"top\"}},\"id\":\"1492\",\"type\":\"Quad\"},{\"attributes\":{},\"id\":\"1482\",\"type\":\"ResetTool\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"1478\",\"type\":\"PanTool\"},{\"id\":\"1479\",\"type\":\"WheelZoomTool\"},{\"id\":\"1480\",\"type\":\"BoxZoomTool\"},{\"id\":\"1481\",\"type\":\"SaveTool\"},{\"id\":\"1482\",\"type\":\"ResetTool\"},{\"id\":\"1483\",\"type\":\"HelpTool\"}]},\"id\":\"1484\",\"type\":\"Toolbar\"},{\"attributes\":{},\"id\":\"1420\",\"type\":\"BasicTicker\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"1452\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"bottom\":{\"value\":0},\"fill_alpha\":{\"value\":0.1},\"fill_color\":{\"value\":\"#1f77b4\"},\"left\":{\"field\":\"left\"},\"line_alpha\":{\"value\":0.1},\"line_color\":{\"value\":\"#1f77b4\"},\"right\":{\"field\":\"right\"},\"top\":{\"field\":\"top\"}},\"id\":\"1493\",\"type\":\"Quad\"},{\"attributes\":{\"ticker\":{\"id\":\"1420\",\"type\":\"BasicTicker\"}},\"id\":\"1423\",\"type\":\"Grid\"},{\"attributes\":{\"below\":[{\"id\":\"1468\",\"type\":\"LinearAxis\"}],\"center\":[{\"id\":\"1472\",\"type\":\"Grid\"},{\"id\":\"1477\",\"type\":\"Grid\"}],\"left\":[{\"id\":\"1473\",\"type\":\"LinearAxis\"}],\"plot_height\":450,\"plot_width\":450,\"renderers\":[{\"id\":\"1494\",\"type\":\"GlyphRenderer\"}],\"title\":{\"id\":\"1458\",\"type\":\"Title\"},\"toolbar\":{\"id\":\"1484\",\"type\":\"Toolbar\"},\"x_range\":{\"id\":\"1460\",\"type\":\"DataRange1d\"},\"x_scale\":{\"id\":\"1464\",\"type\":\"LinearScale\"},\"y_range\":{\"id\":\"1462\",\"type\":\"DataRange1d\"},\"y_scale\":{\"id\":\"1466\",\"type\":\"LinearScale\"}},\"id\":\"1457\",\"subtype\":\"Figure\",\"type\":\"Plot\"},{\"attributes\":{\"items\":[{\"id\":\"1454\",\"type\":\"LegendItem\"}],\"label_text_font_size\":{\"value\":\"11px\"}},\"id\":\"1453\",\"type\":\"Legend\"},{\"attributes\":{\"axis_label\":\"duration (ms)\",\"formatter\":{\"id\":\"1451\",\"type\":\"BasicTickFormatter\"},\"ticker\":{\"id\":\"1425\",\"type\":\"BasicTicker\"}},\"id\":\"1424\",\"type\":\"LinearAxis\"},{\"attributes\":{\"data_source\":{\"id\":\"1491\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"1492\",\"type\":\"Quad\"},\"hover_glyph\":null,\"muted_glyph\":null,\"nonselection_glyph\":{\"id\":\"1493\",\"type\":\"Quad\"},\"selection_glyph\":null,\"view\":{\"id\":\"1495\",\"type\":\"CDSView\"}},\"id\":\"1494\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"label\":{\"value\":\"void (PingNode::?)(std::shared_ptr<std_msgs::msg::String>)\"},\"renderers\":[{\"id\":\"1445\",\"type\":\"GlyphRenderer\"}]},\"id\":\"1454\",\"type\":\"LegendItem\"},{\"attributes\":{\"overlay\":{\"id\":\"1539\",\"type\":\"BoxAnnotation\"}},\"id\":\"1480\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"1425\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"1455\",\"type\":\"DatetimeTickFormatter\"},{\"attributes\":{\"source\":{\"id\":\"1491\",\"type\":\"ColumnDataSource\"}},\"id\":\"1495\",\"type\":\"CDSView\"},{\"attributes\":{\"dimension\":1,\"ticker\":{\"id\":\"1425\",\"type\":\"BasicTicker\"}},\"id\":\"1428\",\"type\":\"Grid\"},{\"attributes\":{\"line_color\":\"#1f77b4\",\"line_width\":2,\"x\":{\"field\":\"timestamp\"},\"y\":{\"field\":\"duration\"}},\"id\":\"1443\",\"type\":\"Line\"},{\"attributes\":{},\"id\":\"1533\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{},\"id\":\"1478\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"1535\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"callback\":null,\"data\":{\"duration\":{\"__ndarray__\":\"yOwseqcCxj+jdOlfksqsPynPvBx237E/+1ksRfKVtD9I3GPpQxe0Pxv0pbc/F60/GjbK+s3ErD+pS8Yxkj2yP+WZl8PuO7I/7Z48LNSasj+TpkHRPICtPy3uPzIdOr0/yNPyA1d5sj9gcw6eCU2yP1qeB3dn7bI/aJQu/UtSsT/DLooe+BisPxgJbTmX4po/n1kSoKaWrT//klSmmIOwP2nlXmBWKJI/VrlQ+dfyqj/Ta7OxEvOwP0KygAncuqs/PdUhN8MNtD/ltKfknNirPyTRyyiWW6o/utqK/WX3rD+DE9GvrZ+yP5FHcCNli7A/fCqnPSXnuD90zk9xHHixP+KuXkVGB6w/ByY3iqw1rD8AN4sXC0OsP6Ti/46oUK0/aYoAp3fxsj9MUMO3sG6sP7xcxHdi1qs/StOgaB7Atj9JERlW8Ua2P/F/R1SobrY/ZHRAEvbtrD/rGi0HeqitPwmp29lXHqw/J6H0hZDzrj+z0w/qIoWqP2K9UStM36s/tfrqqkAtlj9wQ4zXvKqrP+gwX16Afaw/KzQQy2YOmT9hp1g1CHOrP6QbYVERp6s/pYP1fw7zrT+wkSQIV0C1Pw==\",\"dtype\":\"float64\",\"shape\":[56]},\"index\":[2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59,62,65,68,71,74,77,80,83,86,89,92,95,98,101,104,107,110,113,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167],\"timestamp\":{\"__ndarray__\":\"nApE1xC9dkKHQGPXEL12QneCgtcQvXZC2cKh1xC9dkJtA8HXEL12QodE4NcQvXZC1YT/1xC9dkKPxh7YEL12Qp4FPtgQvXZCZkZd2BC9dkIUhnzYEL12QmbIm9gQvXZCPwe72BC9dkLnR9rYEL12QgCI+dgQvXZCSMkY2RC9dkIzCTjZEL12QpxCV9kQvXZCAo122RC9dkJUyZXZEL12QucBtdkQvXZCk0rU2RC9dkK6i/PZEL12QpbNEtoQvXZCZAsy2hC9dkKTTFHaEL12QlaMcNoQvXZCVM2P2hC9dkJeDq/aEL12QnVPztoQvXZCuI7t2hC9dkIOzwzbEL12QikQLNsQvXZCjU9L2xC9dkKij2rbEL12QrzQidsQvXZCvhGp2xC9dkIzUcjbEL12Qt2Q59sQvXZCStIG3BC9dkIAEibcEL12Qk5SRdwQvXZCZJNk3BC9dkKT1IPcEL12QtcTo9wQvXZCK1XC3BC9dkJ7lOHcEL12QjXUAN0QvXZCFA4g3RC9dkKeVT/dEL12QiuXXt0QvXZC28993RC9dkI9Fp3dEL12QmpWvN0QvXZCbZfb3RC9dkKo2PrdEL12Qg==\",\"dtype\":\"float64\",\"shape\":[56]}},\"selected\":{\"id\":\"1538\",\"type\":\"Selection\"},\"selection_policy\":{\"id\":\"1537\",\"type\":\"UnionRenderers\"}},\"id\":\"1407\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"data\":{\"left\":{\"__ndarray__\":\"aeVeYFYokj+M328PnfmgP2RMsO4O36g/nVz4ZkBisD8Jk5hW+VS0P3XJOEayR7g/4P/YNWs6vD8mm7wSkhbAP1y2jIruD8I/ktFcAksJxD8=\",\"dtype\":\"float64\",\"shape\":[10]},\"right\":{\"__ndarray__\":\"jN9vD535oD9kTLDuDt+oP51c+GZAYrA/CZOYVvlUtD91yThGske4P+D/2DVrOrw/Jpu8EpIWwD9ctoyK7g/CP5LRXAJLCcQ/yOwseqcCxj8=\",\"dtype\":\"float64\",\"shape\":[10]},\"top\":[4,0,28,16,5,1,1,0,0,1]},\"selected\":{\"id\":\"1541\",\"type\":\"Selection\"},\"selection_policy\":{\"id\":\"1540\",\"type\":\"UnionRenderers\"}},\"id\":\"1491\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"active_drag\":\"auto\",\"active_inspect\":\"auto\",\"active_multi\":null,\"active_scroll\":\"auto\",\"active_tap\":\"auto\",\"tools\":[{\"id\":\"1429\",\"type\":\"PanTool\"},{\"id\":\"1430\",\"type\":\"WheelZoomTool\"},{\"id\":\"1431\",\"type\":\"BoxZoomTool\"},{\"id\":\"1432\",\"type\":\"SaveTool\"},{\"id\":\"1433\",\"type\":\"ResetTool\"},{\"id\":\"1434\",\"type\":\"HelpTool\"}]},\"id\":\"1435\",\"type\":\"Toolbar\"},{\"attributes\":{\"align\":\"center\",\"text\":\"Duration histogram\"},\"id\":\"1458\",\"type\":\"Title\"},{\"attributes\":{},\"id\":\"1429\",\"type\":\"PanTool\"},{\"attributes\":{},\"id\":\"1479\",\"type\":\"WheelZoomTool\"}],\"root_ids\":[\"1496\"]},\"title\":\"Bokeh Application\",\"version\":\"1.2.0\"}};\n",
|
|
" var render_items = [{\"docid\":\"370a5e1d-5b2b-45e2-96cc-9854c7e6912e\",\"roots\":{\"1496\":\"7208f3dd-65e6-4954-8e38-05269690c9c3\"}}];\n",
|
|
" root.Bokeh.embed.embed_items_notebook(docs_json, render_items);\n",
|
|
"\n",
|
|
" }\n",
|
|
" if (root.Bokeh !== undefined) {\n",
|
|
" embed_document(root);\n",
|
|
" } else {\n",
|
|
" var attempts = 0;\n",
|
|
" var timer = setInterval(function(root) {\n",
|
|
" if (root.Bokeh !== undefined) {\n",
|
|
" embed_document(root);\n",
|
|
" clearInterval(timer);\n",
|
|
" }\n",
|
|
" attempts++;\n",
|
|
" if (attempts > 100) {\n",
|
|
" console.log(\"Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing\");\n",
|
|
" clearInterval(timer);\n",
|
|
" }\n",
|
|
" }, 10, root)\n",
|
|
" }\n",
|
|
"})(window);"
|
|
],
|
|
"application/vnd.bokehjs_exec.v0+json": ""
|
|
},
|
|
"metadata": {
|
|
"application/vnd.bokehjs_exec.v0+json": {
|
|
"id": "1496"
|
|
}
|
|
},
|
|
"output_type": "display_data"
|
|
}
|
|
],
|
|
"source": [
|
|
"data_util = utils.DataModelUtil(data_model)\n",
|
|
"\n",
|
|
"callback_symbols = data_util.get_callback_symbols()\n",
|
|
"\n",
|
|
"output_notebook()\n",
|
|
"psize = 450\n",
|
|
"\n",
|
|
"# Plot durations\n",
|
|
"for obj, symbol in callback_symbols.items():\n",
|
|
" owner_info = data_util.get_callback_owner_info(obj)\n",
|
|
" if owner_info is None:\n",
|
|
" owner_info = '[unknown]'\n",
|
|
"\n",
|
|
" # Duration\n",
|
|
" duration_df = data_util.get_callback_durations(obj)\n",
|
|
" starttime = duration_df.loc[:, 'timestamp'].iloc[0].strftime('%Y-%m-%d %H:%M')\n",
|
|
" source = ColumnDataSource(duration_df)\n",
|
|
" duration = figure(title=owner_info,\n",
|
|
" x_axis_label=f'start ({starttime})',\n",
|
|
" y_axis_label='duration (ms)',\n",
|
|
" plot_width=psize, plot_height=psize)\n",
|
|
" duration.title.align = 'center'\n",
|
|
" duration.line(x='timestamp', y='duration', legend=str(symbol), line_width=2, source=source)\n",
|
|
" duration.legend.label_text_font_size = '11px'\n",
|
|
" duration.xaxis[0].formatter = DatetimeTickFormatter(seconds=['%Ss'])\n",
|
|
"\n",
|
|
" # Histogram\n",
|
|
" dur_hist, edges = np.histogram(duration_df['duration'])\n",
|
|
" duration_hist = pd.DataFrame({'duration': dur_hist, \n",
|
|
" 'left': edges[:-1], \n",
|
|
" 'right': edges[1:]})\n",
|
|
" hist = figure(title='Duration histogram',\n",
|
|
" x_axis_label='duration (ms)',\n",
|
|
" y_axis_label='frequency',\n",
|
|
" plot_width=psize, plot_height=psize)\n",
|
|
" hist.title.align = 'center'\n",
|
|
" hist.quad(bottom=0, top=duration_hist['duration'], \n",
|
|
" left=duration_hist['left'], right=duration_hist['right'])\n",
|
|
"\n",
|
|
" show(row(duration, hist))"
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": []
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Python 3",
|
|
"language": "python",
|
|
"name": "python3"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": {
|
|
"name": "ipython",
|
|
"version": 3
|
|
},
|
|
"file_extension": ".py",
|
|
"mimetype": "text/x-python",
|
|
"name": "python",
|
|
"nbconvert_exporter": "python",
|
|
"pygments_lexer": "ipython3",
|
|
"version": "3.6.8"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|