DescriptionAdd profiling_controller that manages profilers.
Remove StartProfiling & StopProfiling methods from browser.py.
profiling_controller is owned by platform, so this will allow decoupling lifetime of profilers from browser.
This cannot be achieved yet in this patch since we have some
profilers whose lifetime dependent on the browser, e.g: v8, tracing... To do
this, profilers' APIs should be modified for case browser_backend is optional if
they are not dependent on the browsers (e.g: monsoon, tcp_dump...).
For now, StartProfiling will explode if the number of running browsers is not 1.
BUG=
Committed: https://crrev.com/54ab6c560f9738070d152bdd5246a3e32ee459dd
Cr-Commit-Position: refs/heads/master@{#293618}
Patch Set 1 #Patch Set 2 : Update memory measurement #Patch Set 3 : s/profilers_controller/profiling_controller #
Total comments: 6
Patch Set 4 : Rebase & address Tony's comments #Patch Set 5 : #
Messages
Total messages: 19 (6 generated)
|