DevMenu option to control Sampling Profiler's sample interval

Differential Revision: D3722898

fbshipit-source-id: 7bf1528b26a1ac6ed81943144ca433a211cf7b35
This commit is contained in:
Lukas Piatkowski 2016-08-17 08:21:53 -07:00 committed by Facebook Github Bot 7
parent fe1a39a8f2
commit 0b88dbf1a0
1 changed files with 7 additions and 0 deletions

View File

@ -42,5 +42,12 @@
android:summary="If true the Sampling Profiler will start on initialization of JS. Useful for profiling startup of the app. Reload JS after setting."
android:defaultValue="false"
/>
<EditTextPreference
android:key="sampling_profiler_sample_interval"
android:title="Sample interval for Sampling Profiler"
android:summary="Sample interval in microseconds for the Sampling Profiler (default: 1000). Reload JS after setting."
android:defaultValue="1000"
android:inputType="number"
/>
</PreferenceCategory>
</PreferenceScreen>