Commit c61e11fe authored by Yuheng Huang's avatar Yuheng Huang Committed by Chromium LUCI CQ

Tab Search: Add used_js_heap_size_begin and used_js_heap_size_end

metrics

Bug: 1099917
Change-Id: Ic79d19cd576f97223d01021d1af5d3e0a2579c76
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2612112Reviewed-by: default avatarThomas Lukaszewicz <tluk@chromium.org>
Commit-Queue: Yuheng Huang <yuhengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841946}
parent df79f659
...@@ -104,7 +104,10 @@ class TabSearchStory(page.Page): ...@@ -104,7 +104,10 @@ class TabSearchStory(page.Page):
tab.WaitForDocumentReadyStateToBeComplete() tab.WaitForDocumentReadyStateToBeComplete()
# Send key navigation to Tab Search bubble. # Send key navigation to Tab Search bubble.
action_runner.ExecuteJavaScript(MEASURE_JS_MEMORY %
'used_js_heap_size_begin')
self.InteractWithPage(action_runner) self.InteractWithPage(action_runner)
action_runner.ExecuteJavaScript(MEASURE_JS_MEMORY % 'used_js_heap_size_end')
def InteractWithPage(self, action_runner): def InteractWithPage(self, action_runner):
self.ScrollTabs(action_runner) self.ScrollTabs(action_runner)
...@@ -294,3 +297,8 @@ window.__webui_startMeasuringFrameTime('%s') ...@@ -294,3 +297,8 @@ window.__webui_startMeasuringFrameTime('%s')
STOP_MEASURING_FRAME_TIME = ''' STOP_MEASURING_FRAME_TIME = '''
window.__webui_stopMeasuringFrameTime() window.__webui_stopMeasuringFrameTime()
''' '''
MEASURE_JS_MEMORY = '''
performance.mark(
`%s:${performance.memory.usedJSHeapSize}:benchmark_value`);
'''
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment