react-native/React
Dexter eb1ce2816c Fix memory usage display in Perf Monitor (#19664)
Summary:
According to: https://github.com/apple/darwin-xnu/blob/master/osfmk/kern/bsd_kern.c#L420
The result is the same as Xcode app memory uesd.

Before Fix:

<img width="250" alt="before" src="https://user-images.githubusercontent.com/22233256/41394508-ce810362-6fdc-11e8-8d40-73703ec93bc3.png">
<img width="266" alt="before1" src="https://user-images.githubusercontent.com/22233256/41394511-d00a9a0e-6fdc-11e8-9f18-2198e8de2410.png">

After Fix:
<img width="270" alt="after" src="https://user-images.githubusercontent.com/22233256/41394517-d5a56ff2-6fdc-11e8-8d19-41e046c4b511.png">
<img width="267" alt="after1" src="https://user-images.githubusercontent.com/22233256/41394520-d7a3c600-6fdc-11e8-98c4-e3024a4532ec.png">

<!--
  Does this PR require a documentation change?
  Create a PR at https://github.com/facebook/react-native-website and add a link to it here.
-->

[IOS] [BUGFIX] [Monitor] - fix memory perf monitor. Make sure the memory footprint is the same as Jetsam.

<!--
  **INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

    CATEGORY
  [----------]      TYPE
  [ CLI      ] [-------------]    LOCATION
  [ DOCS     ] [ BREAKING    ] [-------------]
  [ GENERAL  ] [ BUGFIX      ] [ {Component} ]
  [ INTERNAL ] [ ENHANCEMENT ] [ {Filename}  ]
  [ IOS      ] [ FEATURE     ] [ {Directory} ]   |-----------|
  [ ANDROID  ] [ MINOR       ] [ {Framework} ] - | {Message} |
  [----------] [-------------] [-------------]   |-----------|

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->
Pull Request resolved: https://github.com/facebook/react-native/pull/19664

Differential Revision: D9246307

Pulled By: hramos

fbshipit-source-id: f85efc54cdcb0c19677594d465752c666d5af18b
2018-08-09 12:46:47 -07:00
..
Base Check return code from malloc (#20173) 2018-08-08 18:32:19 -07:00
CxxBridge Use module copies in RCTBridge APIs 2018-07-23 14:47:45 -07:00
CxxModule iOS: prevent nativemodule access from JS if bridge is no longer valid 2018-08-09 12:17:07 -07:00
CxxUtils Update license headers for MIT license 2018-02-16 18:31:53 -08:00
DevSupport Hiding pre-bundled notification when not on dev mode 2018-07-17 07:17:09 -07:00
Fabric Fabric: Using `const &` pattern everywhere in RCTConversions 2018-08-04 09:47:30 -07:00
Inspector Show warning instead of error on duplicate connection 2018-08-02 03:16:33 -07:00
Modules Replace deprecated `UILineBreakModeWordWrap` with `NSLineBreakByWordWrapping` (#19791) 2018-07-15 00:16:32 -07:00
Profiler Fix memory usage display in Perf Monitor (#19664) 2018-08-09 12:46:47 -07:00
React.xcodeproj Added necessary headers and sources to fix compilation errors for tvOS target (#20406) 2018-07-30 20:16:19 -07:00
UIUtils Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Views Check return code from malloc (#20173) 2018-08-08 18:32:19 -07:00
third-party.xcconfig OSS: upgrade Folly 2016.09.26 => 2016.10.31 2018-04-13 17:33:23 -07:00