chromium/third_party/perfetto/src/trace_processor/trace_blob.cc

/*
 * Copyright (C) 2019 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#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 {

// static
TraceBlob TraceBlob::Allocate(size_t size) {}

// static
TraceBlob TraceBlob::CopyFrom(const void* src, size_t size) {}

// static
TraceBlob TraceBlob::TakeOwnership(std::unique_ptr<uint8_t[]> buf,
                                   size_t size) {}

// static
TraceBlob TraceBlob::FromMmap(base::ScopedMmap mapped) {}

// static
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 {}

}  // namespace trace_processor
}  // namespace perfetto