Comments (3)
You set trigger_on_change=False
and that means do not log attribute changes.
from viztracer.
Ah get it, and it is working now, and other questions:
-
if log_var() could trace the value change? tried like this but from the report b_test stay 100 without change
b_test = 100
tracer = get_tracer()
tracer.log_var("name for the var", b_test)
while retry !=0 :
retry -= 1
b_test += 1
a.change()
time.sleep(0.1) -
description here is a little bit confusing,
If your class has a lot of attributes and they are frequently being written to, it is wise to turn off trigger_on_change
seems that we should use "include_attributes", because "trigger_on_change=False" means nothing for users from report view
from viztracer.
- I think it's a legend -> meaning the full scale is 25. However, it's determined by Perfetto and viztracer has little control over it.
log_var()
is a single point log, it won't keep track of anything. Consider that as aprint
.- Yes, if you have a lot of attributes you should turn off
trigger_on_change
, and manuallylog()
when you want to.include_attributes
is what you need if you want to keep the triggering but limit the attributes being logged. It takes an extra check, compared to usingtrigger_on_change=False
.
To be honest, this is a feature that I implemented early and I had to go back to the code to understand the mechanism now :) You might be one of the few people that are using this.
from viztracer.
Related Issues (20)
- 可以将在生成文件时自动获取.py的文件名或是加上时间戳么? HOT 5
- Something wrong with inline joblib.Parallel HOT 1
- Report Builder Bug HOT 1
- NameError: name 'false' is not defined. Did you mean: 'False'? HOT 1
- 0.16.2: pytest fails in 8 units HOT 10
- 0.16.2: sphinx warnings `reference target not found` HOT 3
- VizTracer 能否可视化python 模块和类之间的调用关系,在分析不熟悉的项目时很有用? 类似于开源库pyan(已经停止维护了) HOT 2
- 可以为VS Code插件 在"设置"中提供 "默认运行参数" 的修改么? HOT 1
- AttributeError: Can't get attribute 'Bar' on <module '__main__' from 'miniconda3/envs/3.12.0/bin/viztracer'>
- Uncaught compile error when attempting to view traces using vizviewer HOT 3
- 请问,使用vizviewer时,如何指定监听的IP和port? HOT 1
- use `https://ui.perfetto.dev` instead of vendored html. HOT 4
- jupyter integration not working properly on remote jupyter lab HOT 2
- Test failed on Arch Linux against Python 3.12 HOT 5
- asyncio.create_subprocess_shell().communicate() hangs HOT 6
- 无法绑定ip及jupyter中无法更改端口号 HOT 1
- Gives warning: "Found and ignore invalid json file, you may lost some process data." HOT 2
- doesn't pick up existing threads at launch HOT 4
- VizTracer not tracing some functions HOT 1
- Build wheels for free-threading version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viztracer.