src/nodejs/jstracing

    Dark Mode
Search:
Group by:

Types

Tracing = ref object of JsRoot
  categories*: cstring       ## https://nodejs.org/api/tracing.html#tracing_tracing_categories
  
https://nodejs.org/api/tracing.html#tracing_tracing_object

Procs

func disable(self: Tracing) {.importjs: "#.$1()", ...raises: [], tags: [].}
https://nodejs.org/api/tracing.html#tracing_tracing_disable
func enable(self: Tracing) {.importjs: "#.$1()", ...raises: [], tags: [].}
https://nodejs.org/api/tracing.html#tracing_tracing_enable
func getEnabledCategories(): cstring {.importjs: "trace_events.$1()",
                                       ...raises: [], tags: [].}
https://nodejs.org/api/tracing.html#tracing_trace_events_getenabledcategories
func importTracing() {.importjs: "import * as trace_events from \'trace_events\'@",
                       ...raises: [], tags: [].}
Alias for import * as module_name from 'module_name';. Must be called once before using the module
func newTracing(options: JsObject): Tracing {.
    importjs: "trace_events.createTracing(#)", ...raises: [], tags: [].}
https://nodejs.org/api/tracing.html#tracing_trace_events_createtracing_options
func requireTracing() {.importjs: "const trace_events = require(\'trace_events\')@",
                        ...raises: [], tags: [].}
Alias for const module_name = require('module_name');. Must be called once before using the module