OSDN Git Service

ART: Report cputime in dex2oat
authorAndreas Gampe <agampe@google.com>
Wed, 16 Jul 2014 16:57:39 +0000 (09:57 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 12 Dec 2016 19:27:09 +0000 (11:27 -0800)
commitc560fc0b430816825add4125134b20eb791f6036
tree117d62174f17f5b0eed1b4b3f64f6575330fe29c
parent7d81bf2c9de138a65ea7189df18bc88f2c4fe6c5
ART: Report cputime in dex2oat

Add ProcessCpuNanoTime. Log cputime in dex2oat completion message.

Sample:

 dex2oat took 20.036s(64.843s cpu) (threads: 48) arena alloc=25MB (26760672B) java alloc=2MB (2311688B) native alloc=44MB (46792784B) free=35MB (37502896B)

Test: m test-art-host
Change-Id: I78646c4808c8205f7f8e7995a82a1ba63cd15298
dex2oat/dex2oat.cc
runtime/base/time_utils.cc
runtime/base/time_utils.h