Home | History | Annotate | Download | only in win
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Prints log files produced by Event Tracing for Windows (by way of the
      6 // FileLogger class) that contain events generated from a select few supported
      7 // providers; see file_logger_win.h for the list.
      8 
      9 #ifndef CHROME_TEST_LOGGING_WIN_LOG_FILE_PRINTER_H_
     10 #define CHROME_TEST_LOGGING_WIN_LOG_FILE_PRINTER_H_
     11 
     12 #include <iosfwd>
     13 
     14 namespace base {
     15 class FilePath;
     16 }
     17 
     18 namespace logging_win {
     19 
     20 // Reads |log_file|, emitting messages to |out|.  Although it is safe to call
     21 // this from multiple threads, only one file may be read at a time; other
     22 // threads trying to read other log files will be blocked waiting.
     23 void PrintLogFile(const base::FilePath& log_file, std::ostream* out);
     24 
     25 }  // namespace logging_win
     26 
     27 #endif  // CHROME_TEST_LOGGING_WIN_LOG_FILE_PRINTER_H_
     28