Changelogs » Viztracer

PyUp Safety actively tracks 266,461 Python packages for vulnerabilities and notifies you when to upgrade.

Viztracer

0.8.2

* VizTracer supports log_func_exec now to log function executions
  * Fixed a small bug in vdb

0.8.1


        

0.8.0

VizTracer can log any variable without changing the source code now.

0.7.5

* python 3.9 is officially supported.
  
  * --open is added

0.7.4

* Now include/exclude files only check python functions.
  
  * viztracer command will convert the file to abs path
  
  * add example scripts

0.7.3

Use binary to read the script to avoid encoding conflict.
  
  Also force using utf-8 to read the html file because that's how we check it in.

0.7.2

VizTracer can log garbage collector operation now.
  
  Fixed a potential double decref issue.

0.7.1

VizLogging, VizObject and VizCounter can handle tracer = None now.
  
  Use get_tracer() instead of the global variable __viz_tracer__
  
  added a filter ignore_non_file

0.7.0

* You can automatically log function arguments now
  * You can add --novdb to reduce the instrument cost
  * vdb now checks the version of the json file

0.6.3

tracer can be accessed globally now if viztracer is used. Some bug fixes

0.6.2

Default tracer_entries is reduced so all computers can open the report with no issues.
  
  Counter and Objects can be displayed in vdb now

0.6.1

You can debug between multiple processes/threads now.
  
  add a couple commands and fixed some bugs in source file displaying

0.6.0

Virtual debug feature is introduced but still in alpha. You can debug your json report now.

0.5.4

Now if the file name does not exist, VizTracer will try to find its absolute path by using which on Linux/MacOS. This can make VizTracer run on flask.

0.5.3

Fixed the bug in add_functionarg().
  
  Reduced the overhead by moving converting data to parsing phase. Should save some run time memory as well.

0.5.2

We can log function arguments now. Also we have a handler for logging module.

0.5.1

tracer_entries can be set through VizTracer now

0.5.0

We converted to circular buffer so we can log forever!

0.4.2

Underlying C structure for the module is changed. Most global variables are moved to objects, which means each VizTracer object actually has their own set of data.
  
  We support module run now with viztracer -m module
  
  trace_and_save is added to periodically save trace in a long program
  
  --log_return_value is supported
  
  some fixes on fork_save

0.4.1

Fix flamegraph, it's been not working for a while and I did not realize it.
  
  Fix important command line bugs, where "__name__" is not __main__. Also not even the script run exit() in their code, they will have trace.
  
  Added secret feature fork_save, has not documented it yet. That's prepared for the next "profile as you run" feaature

0.4.0

0.4.0 is the same as 0.3.4, We boosted the minor version for Windows support.

0.3.4

We now support Windows! viztracer can be directly called through console command viztracer your_script.py

0.3.3

VizTracer now supports gz file, which could save disk space significantly while still being compatible with Chrome.
  
  Several optimizations were applied
  
  * include/exclude files overhead is reduced by not using realpath
  * with orjson, json can be directly dumped without decoding and encoding again
  * class name is not read anymore
  * thread id now makes more sense on both linux and mac

0.3.2

Unified the customized event VizCounter and VizObject. Now they have similar interface and it's easier to use them. Also fixed a source tar error that the header file is not included in the .tar file.

0.3.1

Two custom events are added, Counter and Object. Now the users have more ways to log their data structures

0.3.0

Multi-process is supported. Help message is polished.

0.2.3

Timestamp is fixed. It was off by 1000x. Input check is implemented.

0.2.2

A very important optimization which cut file size in half and speed up everything is applied. Also you can overload print and ignore function now.
  A MacOS triggered bug is fixed, also C_EXCEPTION return is fixed.

0.2.1

VizTracer is capable of generating flamegraph now.

0.2.0

0.2.0 is the same as 0.1.3. All features listed for 0.2.0 is finished so we promote the minor version.