[M85 Migration] Add an evas gl option for rotation
[platform/framework/web/chromium-efl.git] / sql / sql_memory_dump_provider.h
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SQL_SQL_MEMORY_DUMP_PROVIDER_H
6 #define SQL_SQL_MEMORY_DUMP_PROVIDER_H
7
8 #include "base/component_export.h"
9 #include "base/macros.h"
10 #include "base/memory/singleton.h"
11 #include "base/trace_event/memory_dump_provider.h"
12
13 namespace sql {
14
15 // Adds process-wide memory usage statistics about sqlite to chrome://tracing.
16 // sql::Database::OnMemoryDump adds per-connection memory statistics.
17 class COMPONENT_EXPORT(SQL) SqlMemoryDumpProvider
18     : public base::trace_event::MemoryDumpProvider {
19  public:
20   static SqlMemoryDumpProvider* GetInstance();
21
22   // MemoryDumpProvider implementation.
23   bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
24                     base::trace_event::ProcessMemoryDump* pmd) override;
25
26  private:
27   friend struct base::DefaultSingletonTraits<SqlMemoryDumpProvider>;
28
29   SqlMemoryDumpProvider();
30   ~SqlMemoryDumpProvider() override;
31
32   DISALLOW_COPY_AND_ASSIGN(SqlMemoryDumpProvider);
33 };
34
35 }  // namespace sql
36
37 #endif  // SQL_SQL_MEMORY_DUMP_PROVIDER_H