Closed Bug 1637994 Opened 3 months ago Closed 2 months ago

Add a logcat results Transformer

Categories

(Testing :: mozperftest, enhancement)

Version 3
ARM
Android
enhancement

Tracking

(firefox78 fixed)

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: acreskey, Assigned: tarek)

Details

Attachments

(1 file)

On Android, a common way to record performance events is by logging them so that they can be captured via logcat.

This bug is to write a Transformer to consume these logcat files so that test-writers can easily insert their own log-parsing logic to extract performance results.

By examining a log file and the timestamps for key entries a performance result can be obtained.

For example,
From the time from receiving the intent:

03-26 15:14:40.015  1537  3112 I ActivityManager: START u0 {act=android.intent.action.VIEW dat=https://example.com/... typ=text/html flg=0x10000000 

To the start of page load:

03-26 15:14:42.997  7296  7296 D GeckoSession: handleMessage GeckoView:PageStart uri=https://example.com/

This patch adds a transformer that is capable of extracting times/entries or durations for logcat logs. Here, we also implement the ability for users to pass options to the transformers so that they can be more generic (through transformer-options). The logcat transformer makes use of this, and also shows how a custom function can be used within transformers. A new test file is added for the transformer, as well as a test in test_perfherder.py so we can test the full pipeline.

Pushed by gmierz2@outlook.com:
https://hg.mozilla.org/integration/autoland/rev/2d5f01c88b7e
Add a transformer for extracting times/durations from logcat logs. r=acreskey,mozperftest-reviewers,tarek
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.