-
Notifications
You must be signed in to change notification settings - Fork 22
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
Sorted by time output in unifiedlogs_* scripts #31
Comments
I think it may be possible to sort by time if we sort by filename before iterating through the tracev3 files. If we sort the tracev3 files by filename in Persist, Special, SignPost, HighVolume directories, that could provide a way to sort by time |
I fear it's more complex than this. A quick look at the output shows line numbers of sorted output vs
At some point I thought that the |
Note that above numbers are on a logarchive that only has the |
hmm, yes you are correct, ordering by filename will not 100% solve the time sorting issue. |
I'm struggling a bit with the output of the
unifiedlog_*
example scripts.The output is currently not time-sorted, which makes post-processing data in some cases not possible.
Considering the size of a logarchive sorting afterwards can be memory and cpu intensive.
I'm wondering if there would be a way to output the data in a sorted way as the native apple tool also exports sorted by time.
With the current logic of iterating over the
archive_path
types I guess that will not work.Not being that familiar with the true datastructure behind (and thank you for that, as that's the beauty of your library) I'm not sure if it is really feasible. Same with the trick of handling oversized entries.
Do you think there is a clean way to do so?
The text was updated successfully, but these errors were encountered: