Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1016)

Issue 2839683003: Server-Timing (Closed)

Created:
3 years, 8 months ago by cvazac-akam
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-frames_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, kinuko+watch, panicker+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Server-Timing Parse Server-Timing response headers and make the metric name(s), value(s), and description(s) available as PerformanceServerTiming entries on the global performance timeline and to PerformanceObservers. This feature is behind the "ServerTiming" experimental-features flag. To test, turn the flag on (chrome://flags/#enable-experimental-web-platform-features) and explore to https://server-timing.now.sh/. Execute `performance.getEntriesByType('server')` in DevTools to inspect the 4 entries for the base page, as per the response header: server-timing:db=100; "Database metric", api=200; "HTTP/API metric", cache=300; "cache metric", total=0.000297322; "Total Response Time" To inspect the 4 entries for the favicon.ico, you will need to set up a PerformanceObserver (I use TamperMonkey to inject a content script) like this: new PerformanceObserver(function(list, observer) { console.info(list.getEntries()) observer.disconnect() }).observe({entryTypes: ['server']}) Spec: https://w3c.github.io/server-timing/ Intent to implement: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/y3qwr490Fc4/boGoo41-BwAJ BUG=702760 Review-Url: https://codereview.chromium.org/2839683003 Cr-Commit-Position: refs/heads/master@{#469303} Committed: https://chromium.googlesource.com/chromium/src/+/9c4bf486b60e7913eff8100ca33dc0505ef421d9

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : make those robots happy, attempt #1 #

Patch Set 4 : make those robots happy, attempt #2 #

Total comments: 1

Patch Set 5 : make those robots happy, attempt #3 #

Patch Set 6 : make those robots happy, attempt #4 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+906 lines, -78 lines) Patch
A third_party/WebKit/LayoutTests/external/wpt/common/performance-timeline-utils.js View 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/resources/webperftestharness.js View 3 chunks +0 lines, -37 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_document_open.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_navigate_within_document.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_navigation_attributes_exist.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_navigation_redirectCount_none.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_navigation_type_backforward.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_navigation_type_enums.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_navigation_type_reload.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_no_previous_document.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_performance_attributes_exist.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_performance_attributes_exist_in_object.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_readwrite.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_timing_attributes_exist.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_timing_attributes_order.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_timing_client_redirect.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_timing_reload.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_timing_server_redirect.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_timing_xserver_redirect.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/navigation-timing/test_unique_performance_objects.html View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/server-timing/resources/blue.png View Binary file 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/server-timing/resources/blue.png.sub.headers View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/server-timing/resources/green.png View Binary file 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/server-timing/resources/green.png.sub.headers View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/server-timing/test_server_timing.html View 1 chunk +50 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/external/wpt/server-timing/test_server_timing.html.sub.headers View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/user-timing/measure.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/user-timing/measure_navigation_timing.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/user-timing/resources/webperftestharness.js View 4 chunks +0 lines, -37 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/service-worker-navigation-preload-disabled/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.h View 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.cpp View 1 4 chunks +12 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceBase.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceBase.cpp View 1 8 chunks +63 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceEntry.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceEntry.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/timing/PerformanceServerTiming.h View 1 chunk +43 lines, -0 lines 1 comment Download
A third_party/WebKit/Source/core/timing/PerformanceServerTiming.cpp View 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/timing/PerformanceServerTiming.idl View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/HTTPNames.json5 View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/HTTPParsers.h View 1 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/HTTPParsers.cpp View 1 2 3 4 5 1 chunk +63 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/HTTPParsersTest.cpp View 1 2 3 4 1 chunk +499 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (27 generated)
cvazac-akam
3 years, 8 months ago (2017-04-26 04:41:06 UTC) #3
cvazac-akam
This is a re-upload of the triple-LGTM-ed case: https://codereview.chromium.org/2799093004/ I had to re-upload from my ...
3 years, 7 months ago (2017-05-01 16:04:53 UTC) #4
panicker
lgtm
3 years, 7 months ago (2017-05-01 20:52:08 UTC) #5
Yoav Weiss
On 2017/05/01 20:52:08, panicker wrote: > lgtm LGTM2!
3 years, 7 months ago (2017-05-02 09:37:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2839683003/20001
3 years, 7 months ago (2017-05-02 09:38:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/425136)
3 years, 7 months ago (2017-05-02 09:48:06 UTC) #15
Mike West
RS LGTM based on the other patch.
3 years, 7 months ago (2017-05-02 12:11:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2839683003/20001
3 years, 7 months ago (2017-05-02 12:16:40 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/443434)
3 years, 7 months ago (2017-05-02 13:40:05 UTC) #21
Yoav Weiss
https://codereview.chromium.org/2839683003/diff/60001/third_party/WebKit/Source/platform/network/HTTPParsers.cpp File third_party/WebKit/Source/platform/network/HTTPParsers.cpp (right): https://codereview.chromium.org/2839683003/diff/60001/third_party/WebKit/Source/platform/network/HTTPParsers.cpp#newcode900 third_party/WebKit/Source/platform/network/HTTPParsers.cpp:900: if (*position == '=') { Seems like your ASAN ...
3 years, 7 months ago (2017-05-03 08:20:04 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2839683003/80001
3 years, 7 months ago (2017-05-03 19:54:45 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2839683003/100001
3 years, 7 months ago (2017-05-04 10:08:19 UTC) #36
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/9c4bf486b60e7913eff8100ca33dc0505ef421d9
3 years, 7 months ago (2017-05-04 10:15:02 UTC) #39
Nico
3 years, 7 months ago (2017-05-12 01:42:25 UTC) #41
Message was sent while issue was closed.
Please update the member variable names:

https://codereview.chromium.org/2839683003/diff/100001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/timing/PerformanceServerTiming.h (right):

https://codereview.chromium.org/2839683003/diff/100001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/timing/PerformanceServerTiming.h:37: const String
m_metric;
This file uses old blink style. Please name member variables foo_bar_ instead of
m_fooBar. Methods that aren't exposesd in idl should be called Method() instead
of method().

Powered by Google App Engine
This is Rietveld 408576698