base, crypto, net: Fix trace stubs
parent
8db62c4b4e
commit
efe323355b
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style license that can be
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
|
#include "base/trace_event/memory_usage_estimator.h"
|
||||||
#include "base/trace_event/trace_event_stub.h"
|
#include "base/trace_event/trace_event_stub.h"
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
@ -20,6 +21,9 @@ MemoryDumpProvider::~MemoryDumpProvider() = default;
|
||||||
// static
|
// static
|
||||||
constexpr const char* const MemoryDumpManager::kTraceCategory;
|
constexpr const char* const MemoryDumpManager::kTraceCategory;
|
||||||
|
|
||||||
|
template size_t EstimateMemoryUsage(const std::string&);
|
||||||
|
template size_t EstimateMemoryUsage(const std::u16string&);
|
||||||
|
|
||||||
} // namespace trace_event
|
} // namespace trace_event
|
||||||
} // namespace base
|
} // namespace base
|
||||||
|
|
||||||
|
|
|
@ -113,6 +113,7 @@ struct IgnoredValue {
|
||||||
#define TRACE_COUNTER_ID1(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
#define TRACE_COUNTER_ID1(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
||||||
#define TRACE_COPY_COUNTER_ID1(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
#define TRACE_COPY_COUNTER_ID1(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
||||||
#define TRACE_COUNTER_ID2(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
#define TRACE_COUNTER_ID2(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
||||||
|
#define TRACE_COUNTER(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
||||||
#define TRACE_COPY_COUNTER_ID2(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
#define TRACE_COPY_COUNTER_ID2(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
||||||
#define TRACE_EVENT_SAMPLE_WITH_ID1(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
#define TRACE_EVENT_SAMPLE_WITH_ID1(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
||||||
#define TRACE_EVENT_ASYNC_BEGIN0(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
#define TRACE_EVENT_ASYNC_BEGIN0(...) INTERNAL_TRACE_IGNORE(__VA_ARGS__)
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#include <dpapi.h>
|
#include <dpapi.h>
|
||||||
|
|
||||||
#include "base/process/memory.h"
|
#include "base/process/memory.h"
|
||||||
#include "base/trace_event/trace_event.h"
|
#include "base/trace_event/trace_event_stub.h"
|
||||||
#else
|
#else
|
||||||
#include "third_party/boringssl/src/include/openssl/mem.h"
|
#include "third_party/boringssl/src/include/openssl/mem.h"
|
||||||
#endif // BUILDFLAG(IS_WIN)
|
#endif // BUILDFLAG(IS_WIN)
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
#ifndef NET_BASE_TRACE_EVENT_STUB_H_
|
#ifndef NET_BASE_TRACE_EVENT_STUB_H_
|
||||||
#define NET_BASE_TRACE_EVENT_STUB_H_
|
#define NET_BASE_TRACE_EVENT_STUB_H_
|
||||||
|
|
||||||
#import "base/base_export.h"
|
#include "base/base_export.h"
|
||||||
#import "base/memory/weak_ptr.h"
|
#include "base/memory/weak_ptr.h"
|
||||||
#import "base/trace_event/trace_event_stub.h"
|
#include "base/trace_event/trace_event_stub.h"
|
||||||
|
|
||||||
namespace base::trace_event {
|
namespace base::trace_event {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue