--- old/src/share/vm/aot/aotLoader.cpp 2017-06-30 10:07:21.000000000 -0700 +++ new/src/share/vm/aot/aotLoader.cpp 2017-06-30 10:07:20.000000000 -0700 @@ -29,6 +29,7 @@ #include "oops/method.hpp" #include "prims/jvm.h" #include "runtime/os.hpp" +#include "runtime/timerTrace.hpp" GrowableArray* AOTLoader::_heaps = new(ResourceObj::C_HEAP, mtCode) GrowableArray (2, true); GrowableArray* AOTLoader::_libraries = new(ResourceObj::C_HEAP, mtCode) GrowableArray (2, true); @@ -112,6 +113,8 @@ }; void AOTLoader::initialize() { + TraceTime timer("AOT initialization", TRACETIME_LOG(Info, aot, startuptime)); + if (FLAG_IS_DEFAULT(UseAOT) && AOTLibrary != NULL) { // Don't need to set UseAOT on command line when AOTLibrary is specified FLAG_SET_DEFAULT(UseAOT, true);