#include "perfetto/trace_processor/trace_blob.h"
#include <stdlib.h>
#include <string.h>
#if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \
PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID) || \
PERFETTO_BUILDFLAG(PERFETTO_OS_APPLE)
#include <sys/mman.h>
#endif
#include <algorithm>
#include "perfetto/base/compiler.h"
#include "perfetto/base/logging.h"
#include "perfetto/ext/base/scoped_mmap.h"
#include "perfetto/ext/base/utils.h"
#include "perfetto/trace_processor/basic_types.h"
#include "perfetto/trace_processor/ref_counted.h"
namespace perfetto {
namespace trace_processor {
TraceBlob TraceBlob::Allocate(size_t size) { … }
TraceBlob TraceBlob::CopyFrom(const void* src, size_t size) { … }
TraceBlob TraceBlob::TakeOwnership(std::unique_ptr<uint8_t[]> buf,
size_t size) { … }
TraceBlob TraceBlob::FromMmap(base::ScopedMmap mapped) { … }
TraceBlob TraceBlob::FromMmap(void* data, size_t size) { … }
TraceBlob::TraceBlob(Ownership ownership, uint8_t* data, size_t size)
: … { … }
TraceBlob::~TraceBlob() { … }
TraceBlob::TraceBlob(TraceBlob&& other) noexcept
: … { … }
TraceBlob& TraceBlob::operator=(TraceBlob&& other) noexcept { … }
}
}