Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Web Inspector: Frontend should have access to Resource Timing informa…
…tion https://bugs.webkit.org/show_bug.cgi?id=160095 Patch by Johan K. Jensen <johan_jensen@apple.com> on 2016-08-26 Reviewed by Alex Christensen. Source/JavaScriptCore: Rename ResourceTiming property. * inspector/protocol/Network.json: Rename navigationStart to startTime so it's applicable for all resources and not just the main resource. Source/WebCore: Show correct information with Resource Timing information from ResourceLoader rather than DocumentLoader. No new tests, frontend doesn't use the timing data yet. * inspector/InspectorNetworkAgent.cpp: (WebCore::InspectorNetworkAgent::buildObjectForTiming): (WebCore::InspectorNetworkAgent::buildObjectForResourceResponse): (WebCore::InspectorNetworkAgent::buildObjectForCachedResource): (WebCore::InspectorNetworkAgent::willSendRequest): (WebCore::InspectorNetworkAgent::didReceiveResponse): (WebCore::InspectorNetworkAgent::didLoadResourceFromMemoryCache): (WebCore::buildObjectForTiming): Deleted. (WebCore::buildObjectForResourceResponse): Deleted. (WebCore::buildObjectForCachedResource): Deleted. Use ResourceLoader instead of DocumentLoader to get Resource Timing information. Move functions to member functions to access the executionStopWatch. (WebCore::InspectorNetworkAgent::didFinishLoading): Use the load timing finishTime and convert to elapsed time for frontend. * inspector/InspectorNetworkAgent.h: * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::didFinishLoading): Pass the web process load timing on to the inspector. Source/WTF: Add method to get elapsed time for any monotonic time. Used by InspectorNetworkAgent. * wtf/Stopwatch.h: (WTF::Stopwatch::elapsedTimeSinceMonotonicTime): Canonical link: https://commits.webkit.org/179438@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
9493fec
commit 08bb8a2
Showing
8 changed files
with
98 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters