blob: f7bb8d52943e01285695212e142df4a0294eef2b [file] [log] [blame]
// Copyright (c) 2012 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.
#ifndef CHROMIUMOS_WIDE_PROFILING_PERF_PROTOBUF_IO_H_
#define CHROMIUMOS_WIDE_PROFILING_PERF_PROTOBUF_IO_H_
#include <string>
#include "chromiumos-wide-profiling/quipper_proto.h"
#include "chromiumos-wide-profiling/quipper_string.h"
namespace quipper {
bool WriteProtobufToFile(const quipper::PerfDataProto& perf_data_proto,
const string& filename);
bool ReadProtobufFromFile(quipper::PerfDataProto* perf_data_proto,
const string& filename);
} // namespace quipper
#endif // CHROMIUMOS_WIDE_PROFILING_PERF_PROTOBUF_IO_H_