blob: 0803c33b391b47976539aaa7a8c4ce0afdb094d2 [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "chromiumos-wide-profiling/quipper_string.h"
namespace quipper {
// Format string for
extern const char kPerfFormat[];
// Format string for protobuf text format.
extern const char kProtoTextFormat[];
// Structure to hold the format and file of an input or output.
struct FormatAndFile {
// The name of the file.
string filename;
// The format of the file. Options are "perf" for perf data files, "text" for
// proto text files and "proto" for proto binary files.
string format;
// Convert a perf file from one format to another.
bool ConvertFile(const FormatAndFile& input, const FormatAndFile& output);
} // namespace quipper