-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#3230 split traces: refactor for buffer-based use (#3300)
Refactors raw2trace_t for trace-buffer-driven use rather than file-driven use: + Separates out a new function process_next_thread_buffer() from process_thread_file(). + check_thread_file() now puts the header back, so it can be universally processed in process_next_thread_buffer() (this seek is just once per traced thread so there are no performance concerns like in PR #2749). + The thread footer is now written out in on_thread_end(), leaving process_thread_file() only performing file-specific actions. + Removes {un,}read_from_thread_file(), merging them into {unread,get}_next_entry(). + Marks key functions as virtual and protected for subclass support. Issue: #3230
- Loading branch information
1 parent
6c9491d
commit be62e6a
Showing
2 changed files
with
195 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.