-
Notifications
You must be signed in to change notification settings - Fork 625
Fireperf fragments: lifecycle callbacks #3565
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
Conversation
Coverage Report 1Affected Products
Test Logs
Notes |
firebase-perf/src/main/java/com/google/firebase/perf/application/FragmentMonitor.java
Outdated
Show resolved
Hide resolved
Size Report 1Affected Products
Test Logs
Notes |
firebase-perf/src/main/java/com/google/firebase/perf/application/FragmentStateMonitor.java
Outdated
Show resolved
Hide resolved
|
||
public FragmentStateMonitor( | ||
FragmentActivity activity, | ||
Clock clock, |
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.
Why do we need a clock instance here?
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.
because new Trace(...)
needs a clock, for making a screen trace
firebase-perf/src/main/java/com/google/firebase/perf/application/FragmentStateMonitor.java
Outdated
Show resolved
Hide resolved
@leotianlizhan: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
tests failures looks unrelated, seems like it's coming from remote-config, will just merge. |
* Add fragment trace sampling rate config flag (#3546) * Fireperf: fragment lifecycle callbacks (#3565) * onResume and onPause * copyright * rename to * more specific language * Fireperf fragments: trace creation and adding custom attributes (#3575) * implementation * test * gjf * ebugfix * copyright * add tests * long name test * fix test * change error to warn message * Fix hasFrameMetricsAggregator's value not being set. * Fix googleJavaFormat error * Add frame metrics to fragment traces (#3592) * Add frame metrics to fragment traces. * Fix AppStateMonitor.java * Rename FrameMetrics to PerfFrameMetrics * Fix screen trace logging by printing the trace name. (#3599) * Fireperf fragments: sampling (#3588) * ssample fragment after trace already sampled * gjf * tests and qol for immutable bundle * test names and revert getFloat * fragment-sampling * fix test * separate bucketId checkArguments * Fireperf fragments eap: change version number (#3604) * change version number * changelog * changelog edit * Update the gradle properties to match the EAP release branch (#3606) * Update the gradle properties to match the release branch * Revert ktx gradle properties * default no0 sampling rate * gradle.properties revert * gradle.properties revert 2 * fix unit tests * review Co-authored-by: Visu <[email protected]> Co-authored-by: Leo Zhan <[email protected]>
b/208271814
This PR doesn't include tests to unblock the other implementation tasks, tests will be added in another PR.
EDIT: actually don't see a reason to test because these are just lifecycle callbacks, there's nothing in those callbacks so there's nothing to test.