Skip to content

Commit

Permalink
Use the TracingRuntime when creating a PropNameID in marker function.
Browse files Browse the repository at this point in the history
Summary: A tiny change: when we create the function for adding marker records, use the TracingRuntime to create the PropNameID for the global name of this function.

Reviewed By: dulinriley

Differential Revision: D20821067

fbshipit-source-id: 0606e58a6a56394eb5c0b783b30d27538a0f04e6
David Detlefs authored and facebook-github-bot committed Apr 26, 2020
1 parent 26c0b91 commit faacdd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/hermes/TracingRuntime.cpp
Original file line number Diff line number Diff line change
@@ -521,7 +521,7 @@ void addRecordMarker(TracingRuntime &tracingRuntime) {
funcName,
jsi::Function::createFromHostFunction(
tracingRuntime,
jsi::PropNameID::forAscii(rt, funcName),
jsi::PropNameID::forAscii(tracingRuntime, funcName),
0,
[funcName, &tracingRuntime](
jsi::Runtime &rt,

0 comments on commit faacdd8

Please sign in to comment.