Skip to content

Commit 176304e

Browse files
thezhangweimeta-codesync[bot]
authored andcommitted
Add metrics for overall model spec sizes
Summary: Add two pass wise metrics reflecting the size of the gathered model spec. Reviewed By: agampe Differential Revision: D90044736 fbshipit-source-id: d204a9c90f92c60557abcbbe43ccf025143b7da9
1 parent 5245754 commit 176304e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

opt/class-merging/IntraDexClassMergingPass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ void IntraDexClassMergingPass::run_pass(DexStoresVector& stores,
164164
}
165165
}
166166

167+
mgr.set_metric("num_spec_merging_targets",
168+
m_merging_spec.merging_targets.size());
169+
mgr.set_metric("num_spec_excluded_types",
170+
m_merging_spec.exclude_types.size());
171+
167172
class_merging::merge_model(type_system, scope, conf, mgr, stores,
168173
m_merging_spec, true /* is_intra_dex */);
169174

0 commit comments

Comments
 (0)