Changeset 161670 in webkit


Ignore:
Timestamp:
Jan 10, 2014 1:31:42 PM (10 years ago)
Author:
timothy@apple.com
Message:

Prevent some resources from showing up in Web Inspector as years in duration.

No WebKit port passed a monotonic time to InspectorInstrumentation::didFinishLoading -- except Chromium.

https://bugs.webkit.org/show_bug.cgi?id=126760

Reviewed by Joseph Pecoraro.

  • inspector/InspectorInstrumentation.cpp:

(WebCore::InspectorInstrumentation::didFinishLoadingImpl):
Revert part of r102961 to use finishTime as-is and not expect a monotonic time.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r161669 r161670  
     12014-01-10  Timothy Hatcher  <timothy@apple.com>
     2
     3        Prevent some resources from showing up in Web Inspector as years in duration.
     4
     5        No WebKit port passed a monotonic time to InspectorInstrumentation::didFinishLoading -- except Chromium.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=126760
     8
     9        Reviewed by Joseph Pecoraro.
     10
     11        * inspector/InspectorInstrumentation.cpp:
     12        (WebCore::InspectorInstrumentation::didFinishLoadingImpl):
     13        Revert part of r102961 to use finishTime as-is and not expect a monotonic time.
     14
    1152014-01-10  Dirk Schulze  <krit@webkit.org>
    216
  • trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp

    r161633 r161670  
    688688}
    689689
    690 void InspectorInstrumentation::didFinishLoadingImpl(InstrumentingAgents* instrumentingAgents, unsigned long identifier, DocumentLoader* loader, double monotonicFinishTime)
    691 {
    692     InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimelineAgent();
    693     InspectorResourceAgent* resourceAgent = instrumentingAgents->inspectorResourceAgent();
    694     if (!timelineAgent && !resourceAgent)
    695         return;
    696 
    697     double finishTime = 0.0;
    698     // FIXME: Expose all of the timing details to inspector and have it calculate finishTime.
    699     if (monotonicFinishTime)
    700         finishTime = loader->timing()->monotonicTimeToPseudoWallTime(monotonicFinishTime);
    701 
    702     if (timelineAgent)
     690void InspectorInstrumentation::didFinishLoadingImpl(InstrumentingAgents* instrumentingAgents, unsigned long identifier, DocumentLoader* loader, double finishTime)
     691{
     692    if (InspectorTimelineAgent* timelineAgent = instrumentingAgents->inspectorTimelineAgent())
    703693        timelineAgent->didFinishLoadingResource(identifier, false, finishTime, loader->frame());
    704     if (resourceAgent)
     694    if (InspectorResourceAgent* resourceAgent = instrumentingAgents->inspectorResourceAgent())
    705695        resourceAgent->didFinishLoading(identifier, loader, finishTime);
    706696}
Note: See TracChangeset for help on using the changeset viewer.