google / caliper

Micro-benchmarking library for Java
Apache License 2.0
816 stars 109 forks source link

Moe Sync #412

Closed ronshapiro closed 5 years ago

ronshapiro commented 5 years ago

This code has been reviewed and submitted internally. Feel free to discuss on the PR and we can submit follow-up changes as necessary.

Commits:

Add Android build fingerprint to Caliper metadata. For Android, this is more descriptive than os.version, os.arch, and the (currently unused) java.version. Because of ongoing ART improvements, the build fingerprint is needed to interpret runtime results. RELNOTES=add Android build fingerprint to scenario metadata. e833e6e9cc050c7e40076728cab63fb104705a39 -------

Tolerate null reference for android.os.Build#FINGERPRINT. It's not expected to be null on a real Android device, but could be on a mocked-out version. 9ff9ef00eeb2beded9db15a35a7308a5fe317158