def DidStartBrowser(self, browser): """Initialize metrics once right after the browser has been launched.""" self._memory_metric = memory.MemoryMetric(browser) self._cpu_metric = cpu.CpuMetric(browser) if self._record_v8_object_stats: self._v8_object_stats_metric = v8_object_stats.V8ObjectStatsMetric( )
def DidStartBrowser(self, browser): """Initialize metrics once right after the browser has been launched.""" self._memory_metric = memory.MemoryMetric(browser) self._v8_object_stats_metric = ( v8_object_stats.V8ObjectStatsMetric(_V8_COUNTER_NAMES))