Skip to content

Fireperf fragments: trace creation and adding custom attributes #3575

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

Merged
merged 9 commits into from
Mar 23, 2022

Conversation

leotianlizhan
Copy link
Contributor

@leotianlizhan leotianlizhan commented Mar 21, 2022

b/208271842

Currently there's a validation error:

W/FirebasePerformance: non-positive totalFrames in screen trace _st_SupportRequestManagerFragment
W/FirebasePerformance: Invalid Trace:_st_SupportRequestManagerFragment
W/FirebasePerformance: Unable to process the PerfMetric (trace metric: _st_SupportRequestManagerFragment (duration: 118339.913ms)) due to missing or invalid values. See earlier log statements for additional information on the specific missing/invalid values.

This is due to no frame metrics for the "total_frames" validation check, because we have not implemented that yet.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 21, 2022

Coverage Report 1

Affected Products

No changes between base commit (6a42873) and merge commit (e85d838).

Test Logs

Notes

  • Commit (e85d838) is created by Prow via merging PR base commit (6a42873) and head commit (1c49ef3).
  • Run gradle <product>:checkCoverage to produce HTML coverage reports locally. After gradle commands finished, report files can be found under <product-build-dir>/reports/jacoco/.

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/qDUsl7tt5O.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 21, 2022

Size Report 1

Affected Products

  • firebase-perf

    TypeBase (6a42873)Merge (e85d838)Diff
    aar304 kB304 kB+655 B (+0.2%)
    apk (aggressive)1.03 MB981 kB-44.0 kB (-4.3%)
    apk (release)2.46 MB2.46 MB+596 B (+0.0%)

Test Logs

Notes

  • Commit (e85d838) is created by Prow via merging PR base commit (6a42873) and head commit (1c49ef3).

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/9JTtwUlSPh.html


private long currentTime = 0;
private static final String longFragmentName =
"_st_NeverGonnaGiveYouUpNeverGonnaLetYouDownNeverGonnaRunAroundAndDesertYouNeverGonnaMakeYouCryNeverGonnaSayGoodbyeNeverGonnaTellALieAndHurtYou";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this super long name :)

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Mar 23, 2022

@leotianlizhan: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
check-changed 1c49ef3 link /test check-changed

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.

@leotianlizhan leotianlizhan merged commit 2fed9e4 into perfFragmentsEAP Mar 23, 2022
@leotianlizhan leotianlizhan deleted the fragment-trace branch March 23, 2022 23:05
leotianlizhan added a commit that referenced this pull request Apr 7, 2022
* 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]>
@firebase firebase locked and limited conversation to collaborators Apr 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants