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

Unified Diff: content/browser/loader/resource_buffer.cc

Issue 1569673002: [NOT FOR LANDING] Detailed loading traces Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_buffer.cc
diff --git a/content/browser/loader/resource_buffer.cc b/content/browser/loader/resource_buffer.cc
index 3f5a5c89b974c3c239532b843f5e0097d1a936b8..f573d633c68ac7b0fc59a4c60f53a97154a3c989 100644
--- a/content/browser/loader/resource_buffer.cc
+++ b/content/browser/loader/resource_buffer.cc
@@ -7,6 +7,7 @@
#include <math.h>
#include "base/logging.h"
+#include "base/trace_event/trace_event.h"
namespace content {
@@ -44,6 +45,8 @@ ResourceBuffer::~ResourceBuffer() {
bool ResourceBuffer::Initialize(int buffer_size,
int min_allocation_size,
int max_allocation_size) {
+ TRACE_EVENT0("toplevel", "ResourceBuffer::Initialize(");
+
CHECK(!IsInitialized());
// It would be wasteful if these are not multiples of min_allocation_size.
@@ -80,6 +83,7 @@ bool ResourceBuffer::CanAllocate() const {
}
char* ResourceBuffer::Allocate(int* size) {
+ TRACE_EVENT0("toplevel", "ResourceBuffer::Allocate");
CHECK(CanAllocate());
int alloc_offset = 0;
« no previous file with comments | « content/browser/loader/redirect_to_file_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698