Commit 3a8e86f9 authored by Gabriel Charette's avatar Gabriel Charette Committed by Chromium LUCI CQ

[IndexedDB] Add CompactRange trace event

R=dmurph@chromium.org

Bug: 1064645
Change-Id: I09c8e8fdf7a1555b6de5584d9b1d6ea04c273807
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2576631
Commit-Queue: Gabriel Charette <gab@chromium.org>
Auto-Submit: Gabriel Charette <gab@chromium.org>
Reviewed-by: default avatarDaniel Murphy <dmurph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834527}
parent 1c1f6147
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "content/browser/indexed_db/indexed_db_compaction_task.h" #include "content/browser/indexed_db/indexed_db_compaction_task.h"
#include "content/browser/indexed_db/indexed_db_tracing.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h" #include "third_party/leveldatabase/src/include/leveldb/db.h"
namespace content { namespace content {
...@@ -21,6 +22,7 @@ void IndexedDBCompactionTask::Stop( ...@@ -21,6 +22,7 @@ void IndexedDBCompactionTask::Stop(
IndexedDBPreCloseTaskQueue::StopReason reason) {} IndexedDBPreCloseTaskQueue::StopReason reason) {}
bool IndexedDBCompactionTask::RunRound() { bool IndexedDBCompactionTask::RunRound() {
IDB_TRACE("CompactRange");
database()->CompactRange(nullptr, nullptr); database()->CompactRange(nullptr, nullptr);
return true; return true;
} }
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
#ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRACING_H_ #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRACING_H_
#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRACING_H_ #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_TRACING_H_
#include "base/trace_event/trace_event.h" #include "base/trace_event/base_tracing.h"
#define IDB_TRACE(a) TRACE_EVENT0("IndexedDB", (a)); #define IDB_TRACE(a) TRACE_EVENT0("IndexedDB", (a));
#define IDB_TRACE1(a, arg1_name, arg1_val) \ #define IDB_TRACE1(a, arg1_name, arg1_val) \
TRACE_EVENT1("IndexedDB", (a), (arg1_name), (arg1_val)); TRACE_EVENT1("IndexedDB", (a), (arg1_name), (arg1_val));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment