dlog device log

pull/709/head
taoxiangdong 4 years ago
parent e24f54a623
commit afe91245b0

@ -129,6 +129,9 @@ Status GEInitializeImpl(const std::map<string, string> &options) {
// Initialize GE, prepare for execution, call GELib::Initialize // Initialize GE, prepare for execution, call GELib::Initialize
Status GEInitialize(const std::map<string, string> &options) { Status GEInitialize(const std::map<string, string> &options) {
if (DlogReportInitialize() != SUCCESS) {
GELOGW("Dlog report device log initialize failed.");
}
return GEInitializeImpl(options); return GEInitializeImpl(options);
} }
@ -187,6 +190,10 @@ Status GEFinalize() {
// to avoid memory fragment, use malloc_trim to back free stack to system // to avoid memory fragment, use malloc_trim to back free stack to system
malloc_trim(0); malloc_trim(0);
if (DlogReportFinalize() != SUCCESS) {
GELOGW("Dlog report device log finalize failed.");
}
GELOGT(TRACE_STOP, "GEFinalize finished"); GELOGT(TRACE_STOP, "GEFinalize finished");
return ret; return ret;
} }

Loading…
Cancel
Save