8000 GitHub - tokio-js/trutrace: Trace everything
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

tokio-js/trutrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TruTrace

Trace everything

Exmaple (TS)

import * as tru from "@tokio-js/trutrace";

function tracer(msg: string){// Not traced
    const traces = tru.trace();
    const [simple] = tru.format(msg, "INF", traces, new Date());
    console.log(simple);
}

function internal_call() {// Internal Call
    tracer("Internal Call");
}

function top_level_call() {
    internal_call();
}

function main() {
    top_level_call();
}

main();// Top Level Call

About

Trace everything

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 
0