Feature request idea: Export browsers memory profilers via webdriver

33 views
Skip to first unread message

giovanni....@evilaliv3.org

unread,
Feb 3, 2016, 5:02:38 PM2/3/16
to Selenium Developers

It would be valuable if selenium could export the memory profilers of the different browsers and possibly would try to uniform their API.


This would make possible for users to track memory allocations verifying memory leaks and other issues while doing automatic testing.


Probably what would be simple to be implemented using to get support in all the various browsers is to have simply an API like Node process.memoryUsage() that exports rss and heapUsage:https://nodejs.org/api/process.html#process_process_memoryusage


This would make possible to implement retesting on critical applications like we are trying to do in GlobaLeaks and OpenPGP.jsopenpgpjs/openpgpjs#403


What do you think?


best,


Giovanni Pellerano

David Burns

unread,
Feb 4, 2016, 9:38:56 AM2/4/16
to selenium-...@googlegroups.com
I think something like this would be useful to people. However I do have some thoughts:

  • This is essentially an addition to the logging endpoint[1], like performance logging[2]
  • Is there a standard way the data would come out? What shape would the JSON look like? Is there a spec we could work from?

To be honest, since this can be done via logging, the onus to get this implemented is really on browser vendors to have those implementations we can call, especially as WebDriver gets implemented from a specification[3]

David

[1] https://github.com/seleniumhq/selenium/wiki/jsonwireprotocol#sessionsessionidlog

[2] https://sites.google.com/a/chromium.org/chromedriver/logging/performance-log

[3] http://w3c.github.io/webdriver/webdriver-spec.html

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/7f25e4fc-e7be-46c9-8414-74ff678ef526%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages