Remove the memory property from getAppMetrics
See 03d0bfd593
for more information
This commit is contained in:
parent
14df89f214
commit
dde194d853
5 changed files with 4 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue