Cannot get the main process in vizviewer #407
-
Hi everyone, I would like to use viztracer to better understand why my code does not scale well with multiprocessing. Here is the code:
If I put the On the contrary, if I put the I launch the profiling from the CLI with:
What am I missing? Thanks in advance for your help :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
First of all, if you want to understand your program, you probably should not use As for the UI, it's perfetto so you can check their docs out. I believe all the colors correspond to some CPU usage. The black bar is probably the number function calls starting at that time period. The green one on the process is normally the frequency of function calls as well. Because you only have too few calls, they might not quite make sense. They will be if your trace file is more comprehensive. |
Beta Was this translation helpful? Give feedback.
First of all, if you want to understand your program, you probably should not use
log_sparse
. That's for cases where you are only interested in the time spent on a specific function.log_sparse
by default does not log children functions. So if you put that tomain()
, it'll only logmain()
, not any other function calls. That's whatsparse
means.As for the UI, it's perfetto so you can check their docs out. I believe all the colors correspond to some CPU usage. The black bar is probably the number function calls starting at that time period. The green one on the process is normally the frequency of function calls as well. Because you only have too few calls, they might not quite make sense.…