For b/3381327: Save 159+ms for every launch of Books, YouTube, Movie Studio...
Before this CL, you will see in the logcat:
698 StopWatch D StopWatch calcFileSHA1 time (us): 159162
698 bcc I File opened. fd=45
698 bcc I File closed. fd=45
698 StopWatch D StopWatch calcFileSHA1 time (us): 19282
...
This CL also cleans up bcc's logcat.
Change-Id: I4e23b459eee0dc77ef186fb761a64d731a721517
diff --git a/lib/bcc/bcc.cpp b/lib/bcc/bcc.cpp
index 11e3a95..d98c0f8 100644
--- a/lib/bcc/bcc.cpp
+++ b/lib/bcc/bcc.cpp
@@ -63,11 +63,13 @@
return wrap(new bcc::Script());
}
+
extern "C" void bccDisposeScript(BCCScriptRef script) {
BCC_FUNC_LOGGER();
delete unwrap(script);
}
+
extern "C" int bccRegisterSymbolCallback(BCCScriptRef script,
BCCSymbolLookupFn pFn,
void *pContext) {
@@ -75,6 +77,7 @@
return unwrap(script)->registerSymbolCallback(pFn, pContext);
}
+
extern "C" int bccGetError(BCCScriptRef script) {
BCC_FUNC_LOGGER();
return unwrap(script)->getError();
@@ -271,4 +274,3 @@
#endif
}
}
-