Merge "Don't try to report non-existent stats" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
41d74dfea0
@@ -260,7 +260,8 @@ public class PackageDexOptimizer {
|
||||
|
||||
// Only report metrics for base apk for now.
|
||||
// TODO: add ISA and APK type to metrics.
|
||||
if (pkg.getBaseApkPath().equals(path)) {
|
||||
// OTAPreopt doesn't have stats so don't report in that case.
|
||||
if (pkg.getBaseApkPath().equals(path) && packageStats != null) {
|
||||
Trace.traceBegin(Trace.TRACE_TAG_PACKAGE_MANAGER, "dex2oat-metrics");
|
||||
try {
|
||||
long sessionId = Math.randomLongInternal();
|
||||
|
||||
Reference in New Issue
Block a user