react-native/React/Profiler
Tadeu Zagallo 0c74804427 Use dispatch_async instead of lock
Summary: public

The initial implementation used a lock to manage the stored profile information,
blocking the caller thread for longer than it should. Replace it with a private
queue, since the only thing we need to from the caller is to record the immediate
call time and the caller thread/queue, all the rest has absolutely no priority.

Use macros to also defer work done when generate the name of the events.

Reviewed By: nicklockwood

Differential Revision: D2603120

fb-gh-sync-id: e3e36160c893e7ae9ed3558f07c854ea76396661
2015-11-04 09:03:01 -08:00
..
RCTFPSGraph.h Introduce Perf Monitor 2015-10-23 10:56:56 -07:00
RCTFPSGraph.m Introduce Perf Monitor 2015-10-23 10:56:56 -07:00
RCTMacros.h Prevent RCTProfileTrampoline from getting stripped 2015-10-27 13:03:28 -07:00
RCTPerfMonitor.m Added lightweight generic annotations 2015-11-03 14:49:30 -08:00
RCTProfile.h Use dispatch_async instead of lock 2015-11-04 09:03:01 -08:00
RCTProfile.m Use dispatch_async instead of lock 2015-11-04 09:03:01 -08:00
RCTProfileTrampoline-arm.S Prevent RCTProfileTrampoline from getting stripped 2015-10-27 13:03:28 -07:00
RCTProfileTrampoline-arm64.S Prevent RCTProfileTrampoline from getting stripped 2015-10-27 13:03:28 -07:00
RCTProfileTrampoline-x86.S Prevent RCTProfileTrampoline from getting stripped 2015-10-27 13:03:28 -07:00
RCTProfileTrampoline-x86_64.S Preserve xmm registers on x86_64 2015-10-28 05:35:25 -07:00