-
Notifications
You must be signed in to change notification settings - Fork 15
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
C/C++: Read/Write to temporary file is adding Overhead to Duration in Compact format #159
Comments
On the python side, we don't have this problem as we have an "around" decorator and we don't need to call the before/after functions to mimic around; as a result we don't have to keep track of values separately in a file (or in memory). As a first cut, we're going to make sure that the start timestamp is updated here:
my_ts here, so we don't include the file creation time (PFA overhead) in our reporting (measurement of user/application function).
In the future, we need to think about how to handle this differently: is there a way to not use files that is convenient? Using file I/O here can add to overheads. |
|
@slabasan Tagging you on this issue. One efficient solution for this is to probably have a per-thread "stack" (function values will be pushed in order of arrival and popped as they exit). We can push the timestamp in "before", so we capture these in the order of arrival, and we pop from the stack as we enter the "after". The ideal way to implement this is with a dynamically allocated "stack" (can be implemented with As of right now, we're creating |
No description provided.
The text was updated successfully, but these errors were encountered: