This is a VS Code Extension for VizTracer
- Official python extension for VS Code.
viztracer >= 0.16.1
needs to be installed in your python environment
Right click on your python script and choose Trace with VizTracer
or just do it
on command line with viztracer
.
To set the arguments to viztracer
or your script, use viztracer.viztracerArguments
and viztracer.scriptArguments
settings.
By default viztracer will run in your current active terminal if there is one.
You can set viztracer.terminalToTrace
to New Terminal
to always create a new
terminal to trace the scripts.
Right-click on your json
report in the file explorer, choose View with vizviewer
.
You can configure which column(tab group) will be used to hold the viewer tab with viztracer.openTabOn
.
The default is Always New
, which always creates a new column for the viewer tab.
An "Open in VSCode" button will be displayed above the original source code. Click to open the source code in VS Code.
Or you can double click the function slice to open the source code.
Source code will always be opened in Column One, so you can do side-by-side view.
Copyright 2023-2024 Tian Gao.
Distributed under the terms of the Apache 2.0 license