react-native/React/Profiler
Tadeu Zagallo 0f92639a96 Prevent RCTProfileTrampoline from getting stripped
Summary: public

I was using `dlsym` as a more elegant way of checking if the function was defined
to prevent crashes if running on an unsupported architecture, but Xcode might
strip the symbol, even with `.no_dead_strip`, if there's no references to the
compilation unit at all.

Replace it with an ugly `#if` that checks if it's any of the supported targets
and extern the function prototype.

Reviewed By: jspahrsummers

Differential Revision: D2581143

fb-gh-sync-id: b004ed351de97f96c04b4a6c914ce55cfcbbbcbb
2015-10-27 13:03:28 -07: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 Update button and add comments to Perf Monitor 2015-10-24 14:03:27 -07:00
RCTProfile.h Implement asm trampoline rather forwardInvocation 2015-10-20 04:14:09 -07:00
RCTProfile.m Prevent RCTProfileTrampoline from getting stripped 2015-10-27 13:03:28 -07: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 Prevent RCTProfileTrampoline from getting stripped 2015-10-27 13:03:28 -07:00