| 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;
|
|
|