void LinkerLogger::ResetState() { // The most likely scenario app is not debuggable and // is running on a user build, in which case logging is disabled. if (prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) == 0) { return;
}
flags_ = 0;
// For logging, check the flag applied to all processes first. static CachedProperty debug_ld_all("debug.ld.all");
flags_ |= ParseProperty(debug_ld_all.Get());
// Safeguard against a NULL g_argv. Ignore processes started without argv (http://b/33276926). if (g_argv == nullptr || g_argv[0] == nullptr) { return;
}
// Otherwise check the app-specific property too. // We can't easily cache the property here because argv[0] changes. char debug_ld_app[PROP_VALUE_MAX] = {};
GetAppSpecificProperty(debug_ld_app);
flags_ |= ParseProperty(debug_ld_app);
}
void LinkerLogger::Log(constchar* format, ...) {
va_list ap;
va_start(ap, format);
async_safe_format_log_va_list(ANDROID_LOG_DEBUG, "linker", format, ap);
va_end(ap);
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet am 2026-06-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.