remove app.getAppMemoryInfo (#11985)
* remove app.getMemoryInfo * semicolons are important
This commit is contained in:
parent
dcaff20cfd
commit
c2575c4944
2 changed files with 1 additions and 7 deletions
|
@ -1256,7 +1256,6 @@ void App::BuildPrototype(
|
||||||
.SetMethod("getFileIcon", &App::GetFileIcon)
|
.SetMethod("getFileIcon", &App::GetFileIcon)
|
||||||
.SetMethod("getAppMetrics", &App::GetAppMetrics)
|
.SetMethod("getAppMetrics", &App::GetAppMetrics)
|
||||||
.SetMethod("getGPUFeatureStatus", &App::GetGPUFeatureStatus)
|
.SetMethod("getGPUFeatureStatus", &App::GetGPUFeatureStatus)
|
||||||
.SetMethod("enableMixedSandbox", &App::EnableMixedSandbox)
|
|
||||||
// TODO(juturu): Remove in 2.0, deprecate before then with warnings
|
// TODO(juturu): Remove in 2.0, deprecate before then with warnings
|
||||||
#if defined(OS_MACOSX)
|
#if defined(OS_MACOSX)
|
||||||
.SetMethod("moveToApplicationsFolder", &App::MoveToApplicationsFolder)
|
.SetMethod("moveToApplicationsFolder", &App::MoveToApplicationsFolder)
|
||||||
|
@ -1266,7 +1265,7 @@ void App::BuildPrototype(
|
||||||
.SetMethod("startAccessingSecurityScopedResource",
|
.SetMethod("startAccessingSecurityScopedResource",
|
||||||
&App::StartAccessingSecurityScopedResource)
|
&App::StartAccessingSecurityScopedResource)
|
||||||
#endif
|
#endif
|
||||||
.SetMethod("getAppMemoryInfo", &App::GetAppMetrics);
|
.SetMethod("enableMixedSandbox", &App::EnableMixedSandbox);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace api
|
} // namespace api
|
||||||
|
|
|
@ -844,11 +844,6 @@ disables that behaviour.
|
||||||
|
|
||||||
This method can only be called before app is ready.
|
This method can only be called before app is ready.
|
||||||
|
|
||||||
### `app.getAppMemoryInfo()` _Deprecated_
|
|
||||||
|
|
||||||
Returns [`ProcessMetric[]`](structures/process-metric.md): Array of `ProcessMetric` objects that correspond to memory and cpu usage statistics of all the processes associated with the app.
|
|
||||||
**Note:** This method is deprecated, use `app.getAppMetrics()` instead.
|
|
||||||
|
|
||||||
### `app.getAppMetrics()`
|
### `app.getAppMetrics()`
|
||||||
|
|
||||||
Returns [`ProcessMetric[]`](structures/process-metric.md): Array of `ProcessMetric` objects that correspond to memory and cpu usage statistics of all the processes associated with the app.
|
Returns [`ProcessMetric[]`](structures/process-metric.md): Array of `ProcessMetric` objects that correspond to memory and cpu usage statistics of all the processes associated with the app.
|
||||||
|
|
Loading…
Reference in a new issue