-
Notifications
You must be signed in to change notification settings - Fork 78
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
[RFC] trace: Add android screenrecord collector #172
base: master
Are you sure you want to change the base?
Conversation
|
||
""" | ||
# Remove file(s) | ||
target.remove(self._remote_file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's valid to call reset
prior to the first invocation of start
, so do not assume that self._remote_file
will exist on target.
In the past, we've handled this the second way -- i.e. a separate utility collector running in a thread (e.g. see the logcat collector implementation). That is probably the easiest, and offers the most flexibility; though I would not be opposed to doing this via a bash function in shutils instead. Simply limiting this to 3 minutes is definitely not acceptable.
I think we should do this opportunistically -- look for the dependency, and if it present, concatenate the parts; but do not require it, and fall back to returning the parts separately in its absence. This is what I'm doing in the pending FPS pull -- using pandas to speed up FPS processing if it is present, but fall back to the slower method if it isn't.
OK, so I can think of the couple of ways of handling this off the top of my head.
|
Thanks for the review & comments.
I like this solution but it makes In the end, I'm not sure if the archive would be that bad - if I take a look at ftrace, when we use Trappy it "extracts" the trace.dat to a trace.txt. Maybe we could change the
Where the trace product would be outputted to the The archive thing here is because of screenrecord's 3m limitation, but are there types of traces that would generate several independent files ? In this case that would be problematic. |
I have a few issues with the screenrecord utility, so I'm posting this here to collect a bit of feedback.
The main problem is that the max video duration is enforced to be 3 minutes. This means that if we want to record more than 3 minutes of screen footage, we'd need to chain screenrecord commands and then assemble the video files. AFAIK, we'd add a package dependency if we want to assemble the files - and if we want to return all of the recordings when
get_trace()
is called, we'd kinda break the rules as we'd be returning more than one file (or maybe we could return an archive and call it fair ?)I think there's 3 ways to handle this: