Replies: 1 comment
-
I found an old article (https://opensource.com/article/20/11/python-code-viztracer) that helped clarify and have point 1 above, feeling dumb. Still working on 2 but that is not as important. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to learn and understand a codebase (https://github.com/GRIDAPPSD/CIMHub/tree/feature/SETO) to see how it works and to refine the code for my use. I am not a great Python programmer and I am using ChatGPT to help explain certain parts of the code that makes no sense or is convoluted. Viztracer is a great tool to help me understand some of the calls but I wanted to see if anyone can help me with two things?
I want to see if Viztracer will show what data is passed from function to function? Specifically, I would like to see what arguments are passed into a function and if possible see the output data that is then handed off to the next function. This may be file names, paths, dicts, lists, etc.
Is there a way to set a trace for a particular item in a list? For this code, I am using a power system model that has to/from nodes for equipment and conductors. I would like to set a trace on a particular node to follow the path it traverses through the code and see which functions are needed for handling it.
I may be off base here in what Viztracer is for and if anyone has a better idea I would be greatful.
Beta Was this translation helpful? Give feedback.
All reactions