Ktbs4js

Modelled traces API for javascript

View the Project on GitHub oaubert/ktbs4js

KTBS API for JavaScript

API for storing and accessing modelled traces in JavaScript.

It is based on the abstract client API defined in https://kernel-for-trace-based-systems.readthedocs.org/en/latest/concepts/abstract_api.html

It can be used standalone, or use a trace storage system such as https://github.com/oaubert/nots/ or https://github.com/ktbs/ktbs/

Usage

The main entry point is the tracemanager singleton. It defines a TraceManager#init_trace method that creates a new trace and keeps a named reference to it.

For writing, obsels can then be added to the new trace through the Trace#trace method. See the example file for an example.

For reading, obsels can be accessed through the Trace#obsels property.