chromium/third_party/perfetto/src/trace_processor/importers/proto/pixel_modem_parser.cc

/*
 * Copyright (C) 2024 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/proto/pixel_modem_parser.h"

#include <cstddef>
#include <cstdint>

#include "perfetto/ext/base/string_utils.h"
#include "perfetto/protozero/field.h"
#include "src/trace_processor/importers/common/async_track_set_tracker.h"
#include "src/trace_processor/importers/common/slice_tracker.h"
#include "src/trace_processor/importers/proto/pigweed_detokenizer.h"
#include "src/trace_processor/storage/trace_storage.h"
#include "src/trace_processor/util/status_macros.h"

namespace perfetto::trace_processor {

namespace {

constexpr std::string_view kKeyDelimiterStart =;
constexpr std::string_view kKeyDelimiterEnd =;
constexpr std::string_view kKeyDomain =;
constexpr std::string_view kKeyFormat =;
constexpr std::string_view kModemNamePrefix =;
constexpr std::string_view kModemName =;

// Modem inputs in particular have this key-value encoding. It's not a Pigweed
// thing.
std::map<std::string, std::string> SplitUpModemString(std::string input) {}

}  // namespace

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

PixelModemParser::~PixelModemParser() = default;

base::Status PixelModemParser::SetDatabase(protozero::ConstBytes blob) {}

base::Status PixelModemParser::ParseEvent(int64_t ts,
                                          uint64_t trace_packet_ts,
                                          protozero::ConstBytes blob) {}

}  // namespace perfetto::trace_processor