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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp

Issue 2642723005: [not for commit] Add necessary code to enable per-request CPU benchmarking (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/perf/benchmarks/page_cycler_v2.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 rights reserved. 6 rights reserved.
7 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 7 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.Fetch.RequestResourceTime"); 461 SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.Fetch.RequestResourceTime");
462 DCHECK(request.options().synchronousPolicy == RequestAsynchronously || 462 DCHECK(request.options().synchronousPolicy == RequestAsynchronously ||
463 factory.type() == Resource::Raw || 463 factory.type() == Resource::Raw ||
464 factory.type() == Resource::XSLStyleSheet); 464 factory.type() == Resource::XSLStyleSheet);
465 465
466 context().populateResourceRequest( 466 context().populateResourceRequest(
467 factory.type(), request.clientHintsPreferences(), 467 factory.type(), request.clientHintsPreferences(),
468 request.getResourceWidth(), resourceRequest); 468 request.getResourceWidth(), resourceRequest);
469 469
470 // TODO(dproy): Remove this. http://crbug.com/659666 470 // TODO(dproy): Remove this. http://crbug.com/659666
471 TRACE_EVENT1("blink", "ResourceFetcher::requestResource", "url", 471 TRACE_EVENT1("blink,loading", "ResourceFetcher::requestResource", "url",
472 urlForTraceEvent(request.url())); 472 urlForTraceEvent(request.url()));
473 473
474 if (!request.url().isValid()) 474 if (!request.url().isValid())
475 return nullptr; 475 return nullptr;
476 476
477 resourceRequest.setPriority(computeLoadPriority( 477 resourceRequest.setPriority(computeLoadPriority(
478 factory.type(), request, ResourcePriority::NotVisible)); 478 factory.type(), request, ResourcePriority::NotVisible));
479 initializeResourceRequest(resourceRequest, factory.type(), request.defer()); 479 initializeResourceRequest(resourceRequest, factory.type(), request.defer());
480 network_instrumentation::resourcePrioritySet(identifier, 480 network_instrumentation::resourcePrioritySet(identifier,
481 resourceRequest.priority()); 481 resourceRequest.priority());
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 visitor->trace(m_context); 1502 visitor->trace(m_context);
1503 visitor->trace(m_archive); 1503 visitor->trace(m_archive);
1504 visitor->trace(m_loaders); 1504 visitor->trace(m_loaders);
1505 visitor->trace(m_nonBlockingLoaders); 1505 visitor->trace(m_nonBlockingLoaders);
1506 visitor->trace(m_documentResources); 1506 visitor->trace(m_documentResources);
1507 visitor->trace(m_preloads); 1507 visitor->trace(m_preloads);
1508 visitor->trace(m_resourceTimingInfoMap); 1508 visitor->trace(m_resourceTimingInfoMap);
1509 } 1509 }
1510 1510
1511 } // namespace blink 1511 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/page_cycler_v2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698