Skip reading usage stats for map data.
Bug: 136245508
Test: Ran DexDiag tests on cuttlefish and Taimen (32 bit and 64 bit).
Change-Id: I0093d721033a29a3e5a11c3430e82e38f624320c
diff --git a/dexlayout/dexdiag.cc b/dexlayout/dexdiag.cc
index ca9018d..a9ea27d 100644
--- a/dexlayout/dexdiag.cc
+++ b/dexlayout/dexdiag.cc
@@ -495,7 +495,9 @@
// get libmeminfo process information.
ProcMemInfo proc(pid);
// Get the set of mappings by the specified process.
- const std::vector<Vma>& maps = proc.Maps();
+ // Do not get the map usage stats, they are never used and it can take
+ // a long time to get this data.
+ const std::vector<Vma>& maps = proc.MapsWithoutUsageStats();
if (maps.empty()) {
std::cerr << "Error listing maps." << std::endl;
return EXIT_FAILURE;