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:
0841a6d
)
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>
Fri, 26 Feb 2016 00:43:44 +0000
(16:43 -0800)
Shows up in systrace.
Bug:
22858531
(cherry picked from commit
31317c319667cf1d7d0f61229ccb5e76f22606cf
)
Change-Id: Id4997fb9abc28fa8c1dd1e78ff01234637b229d3
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
2e1bd33
..
a484eab
100644
(file)
--- a/
runtime/gc/space/image_space.cc
+++ b/
runtime/gc/space/image_space.cc
@@
-1213,6
+1213,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,