Commit 15ecb60 1 parent b61583a commit 15ecb60 Copy full SHA for 15ecb60
File tree 1 file changed +8
-2
lines changed
ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
package com .facebook .hermes .reactexecutor ;
8
8
9
+ import com .facebook .hermes .instrumentation .HermesSamplingProfiler ;
9
10
import com .facebook .react .bridge .JavaScriptExecutor ;
10
11
import com .facebook .react .bridge .JavaScriptExecutorFactory ;
11
12
@@ -28,10 +29,15 @@ public JavaScriptExecutor create() {
28
29
}
29
30
30
31
@ Override
31
- public void startSamplingProfiler () {}
32
+ public void startSamplingProfiler () {
33
+ HermesSamplingProfiler .enable ();
34
+ }
32
35
33
36
@ Override
34
- public void stopSamplingProfiler (String filename ) {}
37
+ public void stopSamplingProfiler (String filename ) {
38
+ HermesSamplingProfiler .dumpSampledTraceToFile (filename );
39
+ HermesSamplingProfiler .disable ();
40
+ }
35
41
36
42
@ Override
37
43
public String toString () {
You can’t perform that action at this time.
0 commit comments