square / papa

PAPA: Performance of Android Production Applications
Apache License 2.0
351 stars 15 forks source link

Add event system #19

Closed pyricau closed 2 years ago

pyricau commented 3 years ago

Need to create an event recording system that we can hook into to set listeners (otherwise they're lost) and then each app launch sets a listener and provides the list of events once done. The EventRecorder need to be thread safe. We also likely need 2 recorders or a way to duplicate because process start is one and cold app launch is another. Also need to be able to insert events at a specific time. Need to be able to add custom events.

Once we have that we can migrate a lot of the custom measurements to these events.

pyricau commented 2 years ago

This is done.