mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38321 This diff adds the native method in `ReactMarker.java` file so that any logs in the android side will call into C++. Given that currently the C++ uses the native implementation from hosting platforms, this allows any call (either from C++ or android) will end up calling the C++ method after logging is done. The motivation of this change is to allow us to collect timing information from hosting platforms, and report back to JS performance startup API. We will have items that are logged before the JNI part is loaded, and those will be cached and sent over in the next diff. Changelog: [Android][Internal] - Implemented native method for Android LogMarker API to report timing values to C++. Reviewed By: mdvacca Differential Revision: D43806115 fbshipit-source-id: 11497bdc0af8d1b0299a797c636bb7af7a6ddda4