chromium/third_party/perfetto/src/trace_processor/importers/fuchsia/fuchsia_trace_parser.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 "src/trace_processor/importers/fuchsia/fuchsia_trace_parser.h"

#include "src/trace_processor/importers/common/args_tracker.h"
#include "src/trace_processor/importers/common/event_tracker.h"
#include "src/trace_processor/importers/common/flow_tracker.h"
#include "src/trace_processor/importers/common/process_tracker.h"
#include "src/trace_processor/importers/common/slice_tracker.h"
#include "src/trace_processor/importers/common/track_tracker.h"
#include "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h"

namespace perfetto {
namespace trace_processor {

namespace {
// Record Types
constexpr uint32_t kEvent =;

// Event Types
constexpr uint32_t kInstant =;
constexpr uint32_t kCounter =;
constexpr uint32_t kDurationBegin =;
constexpr uint32_t kDurationEnd =;
constexpr uint32_t kDurationComplete =;
constexpr uint32_t kAsyncBegin =;
constexpr uint32_t kAsyncInstant =;
constexpr uint32_t kAsyncEnd =;
constexpr uint32_t kFlowBegin =;
constexpr uint32_t kFlowStep =;
constexpr uint32_t kFlowEnd =;

// Argument Types
constexpr uint32_t kNull =;
constexpr uint32_t kInt32 =;
constexpr uint32_t kUint32 =;
constexpr uint32_t kInt64 =;
constexpr uint32_t kUint64 =;
constexpr uint32_t kDouble =;
constexpr uint32_t kString =;
constexpr uint32_t kPointer =;
constexpr uint32_t kKoid =;
constexpr uint32_t kBool =;

}  // namespace

FuchsiaTraceParser::FuchsiaTraceParser(TraceProcessorContext* context)
    :{}

FuchsiaTraceParser::~FuchsiaTraceParser() = default;

std::optional<std::vector<FuchsiaTraceParser::Arg>>
FuchsiaTraceParser::ParseArgs(
    fuchsia_trace_utils::RecordCursor& cursor,
    uint32_t n_args,
    std::function<StringId(base::StringView string)> intern_string,
    std::function<StringId(uint32_t index)> get_string) {}

void FuchsiaTraceParser::ParseFuchsiaRecord(int64_t, FuchsiaRecord fr) {}

}  // namespace trace_processor
}  // namespace perfetto