react-native-macos/ReactCommon
Janic Duplessis 3568a72987 Implement Runtime.getHeapUsage for hermes chrome inspector (#32895)
Summary:
I was looking at the hermes chrome devtools integration and noticed requests to `Runtime.getHeapUsage` which was not implemented. When implemented it will show a summary of memory usage of the javascript instance in devtools.

<img width="325" alt="image" src="https://user-images.githubusercontent.com/2677334/149637113-e1d95d26-9e26-46c2-9be6-47d22284f15f.png">

## Changelog

[General] [Added] - Implement Runtime.getHeapUsage for hermes chrome inspector

Pull Request resolved: https://github.com/facebook/react-native/pull/32895

Test Plan:
Before

<img width="912" alt="image" src="https://user-images.githubusercontent.com/2677334/149637073-15f4e1fa-8183-42dc-8673-d4371731415c.png">

After

<img width="1076" alt="image" src="https://user-images.githubusercontent.com/2677334/149637085-579dee8f-5efb-4658-b0a8-2400bd119924.png">

Reviewed By: christophpurrer

Differential Revision: D33616658

Pulled By: ShikaSD

fbshipit-source-id: 49d863e6a58d4a92d4c86f9a288ac33ed8d2cb0d
2022-02-02 10:37:06 -08:00
..
butter Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
callinvoker Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
cxxreact Remove FBREMAP experiment 2022-01-27 12:02:19 -08:00
hermes Implement Runtime.getHeapUsage for hermes chrome inspector (#32895) 2022-02-02 10:37:06 -08:00
jsengineinstance The life-changing magic of clang-tidying up 2020-02-04 11:09:30 -08:00
jsi Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
jsiexecutor Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
jsinspector Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
libraries/fbcore/src/test/java/com/facebook/powermock Explicitly set autoglob (long tail) 2020-12-17 19:35:29 -08:00
logger Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
microprofiler Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
react Back out "Delete RuntimeScheduler yielding mobile config" 2022-02-01 15:17:14 -08:00
reactperflogger Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
runtimeexecutor Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
yoga Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
React-Fabric.podspec Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
React-rncore.podspec Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
ReactCommon.podspec Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
common.mk Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00