mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
base: Disable trace event
This commit is contained in:
parent
74ba2391a8
commit
2804546a80
@ -5,6 +5,8 @@
|
|||||||
#ifndef BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_
|
#ifndef BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_
|
||||||
#define BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_
|
#define BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_
|
||||||
|
|
||||||
|
#include "base/trace_event/trace_event_stub.h"
|
||||||
|
#if 0
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@ -149,4 +151,5 @@ void BASE_EXPORT PrintTo(const MemoryAllocatorDump::Entry&, std::ostream*);
|
|||||||
} // namespace trace_event
|
} // namespace trace_event
|
||||||
} // namespace base
|
} // namespace base
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_
|
#endif // BASE_TRACE_EVENT_MEMORY_ALLOCATOR_DUMP_H_
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
#ifndef BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
|
#ifndef BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
|
||||||
#define BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
|
#define BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
|
||||||
|
|
||||||
|
#include "base/trace_event/trace_event_stub.h"
|
||||||
|
#if 0
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
@ -267,4 +269,5 @@ class BASE_EXPORT MemoryDumpManager {
|
|||||||
} // namespace trace_event
|
} // namespace trace_event
|
||||||
} // namespace base
|
} // namespace base
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
|
#endif // BASE_TRACE_EVENT_MEMORY_DUMP_MANAGER_H_
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
#ifndef BASE_TRACE_EVENT_MEMORY_DUMP_PROVIDER_H_
|
#ifndef BASE_TRACE_EVENT_MEMORY_DUMP_PROVIDER_H_
|
||||||
#define BASE_TRACE_EVENT_MEMORY_DUMP_PROVIDER_H_
|
#define BASE_TRACE_EVENT_MEMORY_DUMP_PROVIDER_H_
|
||||||
|
|
||||||
|
#include "base/trace_event/trace_event_stub.h"
|
||||||
|
#if 0
|
||||||
#include "base/base_export.h"
|
#include "base/base_export.h"
|
||||||
#include "base/macros.h"
|
#include "base/macros.h"
|
||||||
#include "base/process/process_handle.h"
|
#include "base/process/process_handle.h"
|
||||||
@ -49,4 +51,5 @@ class BASE_EXPORT MemoryDumpProvider {
|
|||||||
} // namespace trace_event
|
} // namespace trace_event
|
||||||
} // namespace base
|
} // namespace base
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif // BASE_TRACE_EVENT_MEMORY_DUMP_PROVIDER_H_
|
#endif // BASE_TRACE_EVENT_MEMORY_DUMP_PROVIDER_H_
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
#ifndef BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
|
#ifndef BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
|
||||||
#define BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
|
#define BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
|
||||||
|
|
||||||
|
#include "base/trace_event/trace_event_stub.h"
|
||||||
|
#if 0
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
@ -279,4 +281,5 @@ class BASE_EXPORT ProcessMemoryDump {
|
|||||||
} // namespace trace_event
|
} // namespace trace_event
|
||||||
} // namespace base
|
} // namespace base
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
|
#endif // BASE_TRACE_EVENT_PROCESS_MEMORY_DUMP_H_
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
#ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_
|
#ifndef BASE_TRACE_EVENT_TRACE_EVENT_H_
|
||||||
#define BASE_TRACE_EVENT_TRACE_EVENT_H_
|
#define BASE_TRACE_EVENT_TRACE_EVENT_H_
|
||||||
|
|
||||||
|
#include "base/trace_event/trace_event_stub.h"
|
||||||
|
#if 0
|
||||||
// This header file defines implementation details of how the trace macros in
|
// This header file defines implementation details of how the trace macros in
|
||||||
// trace_event_common.h collect and store trace events. Anything not
|
// trace_event_common.h collect and store trace events. Anything not
|
||||||
// implementation-specific should go in trace_event_common.h instead of here.
|
// implementation-specific should go in trace_event_common.h instead of here.
|
||||||
@ -830,4 +832,5 @@ class TraceScopedTrackableObject {
|
|||||||
} // namespace trace_event
|
} // namespace trace_event
|
||||||
} // namespace base
|
} // namespace base
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif // BASE_TRACE_EVENT_TRACE_EVENT_H_
|
#endif // BASE_TRACE_EVENT_TRACE_EVENT_H_
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "base/trace_event/memory_usage_estimator.h"
|
||||||
#include "base/trace_event/trace_event_stub.h"
|
#include "base/trace_event/trace_event_stub.h"
|
||||||
|
|
||||||
namespace base {
|
namespace base {
|
||||||
@ -17,5 +18,13 @@ void TracedValue::AppendAsTraceFormat(std::string* out) const {}
|
|||||||
|
|
||||||
MemoryDumpProvider::~MemoryDumpProvider() = default;
|
MemoryDumpProvider::~MemoryDumpProvider() = default;
|
||||||
|
|
||||||
|
MemoryDumpManager g_stub_memory_dump_manager;
|
||||||
|
MemoryDumpManager* MemoryDumpManager::GetInstance() {
|
||||||
|
return &g_stub_memory_dump_manager;
|
||||||
|
}
|
||||||
|
|
||||||
|
template size_t EstimateMemoryUsage(const std::string&);
|
||||||
|
template size_t EstimateMemoryUsage(const string16&);
|
||||||
|
|
||||||
} // namespace trace_event
|
} // namespace trace_event
|
||||||
} // namespace base
|
} // namespace base
|
||||||
|
@ -10,7 +10,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "base/base_export.h"
|
#include "base/base_export.h"
|
||||||
|
#include "base/check.h"
|
||||||
#include "base/macros.h"
|
#include "base/macros.h"
|
||||||
|
#include "base/memory/ref_counted.h"
|
||||||
|
#include "base/single_thread_task_runner.h"
|
||||||
#include "base/strings/string_piece.h"
|
#include "base/strings/string_piece.h"
|
||||||
#include "base/trace_event/common/trace_event_common.h"
|
#include "base/trace_event/common/trace_event_common.h"
|
||||||
#include "base/trace_event/memory_allocator_dump_guid.h"
|
#include "base/trace_event/memory_allocator_dump_guid.h"
|
||||||
@ -170,6 +173,51 @@ class BASE_EXPORT MemoryDumpProvider {
|
|||||||
DISALLOW_COPY_AND_ASSIGN(MemoryDumpProvider);
|
DISALLOW_COPY_AND_ASSIGN(MemoryDumpProvider);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class BASE_EXPORT MemoryAllocatorDump {
|
||||||
|
public:
|
||||||
|
static constexpr char* kNameSize = nullptr;
|
||||||
|
static constexpr char* kNameObjectCount = nullptr;
|
||||||
|
static constexpr char* kUnitsBytes = nullptr;
|
||||||
|
static constexpr char* kUnitsObjects = nullptr;
|
||||||
|
static constexpr char* kTypeScalar = nullptr;
|
||||||
|
static constexpr char* kTypeString = nullptr;
|
||||||
|
void AddScalar(const char* name, const char* units, uint64_t value) {}
|
||||||
|
void AddString(const char* name,
|
||||||
|
const char* units,
|
||||||
|
const std::string& value) {}
|
||||||
|
const std::string& absolute_name() const { return absolute_name_; }
|
||||||
|
const MemoryAllocatorDumpGuid& guid() const { return guid_; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
const std::string absolute_name_;
|
||||||
|
MemoryAllocatorDumpGuid guid_;
|
||||||
|
};
|
||||||
|
|
||||||
|
class BASE_EXPORT ProcessMemoryDump {
|
||||||
|
public:
|
||||||
|
MemoryAllocatorDump* CreateAllocatorDump(const std::string& absolute_name) {
|
||||||
|
CHECK(false);
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
MemoryAllocatorDump* GetAllocatorDump(
|
||||||
|
const std::string& absolute_name) const {
|
||||||
|
CHECK(false);
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
void AddOwnershipEdge(const MemoryAllocatorDumpGuid& source,
|
||||||
|
const MemoryAllocatorDumpGuid& target) {}
|
||||||
|
};
|
||||||
|
|
||||||
|
class BASE_EXPORT MemoryDumpManager {
|
||||||
|
public:
|
||||||
|
static MemoryDumpManager* GetInstance();
|
||||||
|
void RegisterDumpProvider(MemoryDumpProvider* mdp,
|
||||||
|
const char* name,
|
||||||
|
scoped_refptr<SingleThreadTaskRunner> task_runner) {
|
||||||
|
}
|
||||||
|
void UnregisterDumpProvider(MemoryDumpProvider* mdp) {}
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace trace_event
|
} // namespace trace_event
|
||||||
} // namespace base
|
} // namespace base
|
||||||
|
|
||||||
|
@ -769,8 +769,6 @@ component("net") {
|
|||||||
"log/file_net_log_observer.h",
|
"log/file_net_log_observer.h",
|
||||||
"log/net_log_util.cc",
|
"log/net_log_util.cc",
|
||||||
"log/net_log_util.h",
|
"log/net_log_util.h",
|
||||||
"log/trace_net_log_observer.cc",
|
|
||||||
"log/trace_net_log_observer.h",
|
|
||||||
"nqe/cached_network_quality.cc",
|
"nqe/cached_network_quality.cc",
|
||||||
"nqe/cached_network_quality.h",
|
"nqe/cached_network_quality.h",
|
||||||
"nqe/connectivity_monitor.cc",
|
"nqe/connectivity_monitor.cc",
|
||||||
|
Loading…
Reference in New Issue
Block a user