Implement asyncMethodCallFail

Summary:
The async NativeModule method call event can fail if something goes wrong when we're about do dispatch the method call.
Changelog: [Internal]

Reviewed By: ejanzer

Differential Revision: D22609410

fbshipit-source-id: 699eeb78edfbefa85e417fd82318ae8e4f6f7d90
This commit is contained in:
Ramanpreet Nara
2020-07-31 12:49:14 -07:00
committed by Facebook GitHub Bot
parent 9c35b5b8c4
commit d22a121cb3
5 changed files with 19 additions and 0 deletions
@@ -249,6 +249,13 @@ void asyncMethodCallEnd(const char *moduleName, const char *methodName) {
}
}
void asyncMethodCallFail(const char *moduleName, const char *methodName) {
NativeModulePerfLogger *logger = g_perfLogger.get();
if (logger != nullptr) {
logger->asyncMethodCallFail(moduleName, methodName);
}
}
void asyncMethodCallBatchPreprocessStart() {
NativeModulePerfLogger *logger = g_perfLogger.get();
if (logger != nullptr) {