-
-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
absolute include file not working. #574
Comments
It's not equivalent. If you pass in relative path, it's going to be relative path + absolute path. If you pass absolute path, it'll be absolute path only. Normally the However, I actually do not suggest using |
I'm tracking the whole throughput, so there would be tons of entries if I did not provide the I debug the code (notice that the decorator here is customized) @trace_and_save
def main():
pass The main function here has |
Sorry you'll have to give me a minimum reproducible example. Without some code to run, I can't really tell what's happening. |
I made a custom decorator as follows:
behaviour:
expected behaviour:
If we pass the absolute path only, the viztracer records 56092 entries align with relative path calling.
debugs
In both experiments, the path was passed to
viztracer/src/viztracer/viztracer.py
Lines 71 to 74 in 86775df
As to my understanding, this line is to appending abs path to the included files. Which means it should be equal to pass only the abs path.
I could not dig in more, since I didn't find where the
self.include_files
was usedThe text was updated successfully, but these errors were encountered: