Closed taboca closed 7 years ago
@taboca All functions in Spectron return promises. Try doing
app.rendererProcess.getProcessMemoryInfo().then((info)=> console.log(info))
Closing this out, using @MarshallOfSound's example should work for accessing those Electron APIs.
I am interested in incorporating tests, or any watching mechanism, for monitoring memory associated with the spectron client-> electron. I wonder your opinion if this a) can be interesting and b) how can I start working with any workaround solutions.
My first attempt was to do this:
But these calls are generating the following outputs:
I also see other features in Electron, such as the following:
https://github.com/electron/electron/blob/master/docs/api/content-tracing.md
Therefore I wonder what would be the ideal set of functions for one that is not only interested in testing ins and outs but also performance.