OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ec486c
)
Add a decompression scoped timing for image loading
author
Mathieu Chartier
<mathieuc@google.com>
Thu, 25 Feb 2016 20:28:40 +0000
(12:28 -0800)
committer
Mathieu Chartier
<mathieuc@google.com>
Thu, 25 Feb 2016 20:48:22 +0000
(12:48 -0800)
Shows up in systrace.
Bug:
22858531
Change-Id: Ic165cd0106dd019c002b600d37560b71b4e351d1
runtime/gc/space/image_space.cc
patch
|
blob
|
history
diff --git
a/runtime/gc/space/image_space.cc
b/runtime/gc/space/image_space.cc
index
894ce9a
..
bc21b33
100644
(file)
--- a/
runtime/gc/space/image_space.cc
+++ b/
runtime/gc/space/image_space.cc
@@
-1289,6
+1289,7
@@
ImageSpace* ImageSpace::Init(const char* image_filename,
}
memcpy(map->Begin(), image_header, sizeof(ImageHeader));
const uint64_t start = NanoTime();
+ TimingLogger::ScopedTiming timing2("LZ4 decompress image", &logger);
const size_t decompressed_size = LZ4_decompress_safe(
reinterpret_cast<char*>(temp_map->Begin()) + sizeof(ImageHeader),
reinterpret_cast<char*>(map->Begin()) + write_offset,