Remove the memory property from getAppMetrics

See 03d0bfd593 for more information
This commit is contained in:
Samuel Attard 2018-07-22 00:35:41 +10:00 committed by Aleksei Kuzmin
parent 14df89f214
commit dde194d853
5 changed files with 4 additions and 35 deletions

View file

@ -43,9 +43,8 @@ Object.assign(app, {
const nativeFn = app.getAppMetrics
app.getAppMetrics = () => {
let metrics = nativeFn.call(app)
for (const {memory} of metrics) {
deprecate.removeProperty(memory, 'privateBytes')
deprecate.removeProperty(memory, 'sharedBytes')
for (const metric of metrics) {
deprecate.removeProperty(metric, 'memory')
}
return metrics