Coverage for /Syzygy/trace/parse/parse_engine_rpc.h

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
0.0%0024.C++source

Line-by-line coverage:

   1    :  // Copyright 2012 Google Inc. All Rights Reserved.
   2    :  //
   3    :  // Licensed under the Apache License, Version 2.0 (the "License");
   4    :  // you may not use this file except in compliance with the License.
   5    :  // You may obtain a copy of the License at
   6    :  //
   7    :  //     http://www.apache.org/licenses/LICENSE-2.0
   8    :  //
   9    :  // Unless required by applicable law or agreed to in writing, software
  10    :  // distributed under the License is distributed on an "AS IS" BASIS,
  11    :  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12    :  // See the License for the specific language governing permissions and
  13    :  // limitations under the License.
  14    :  //
  15    :  // Call trace event parsing classes.
  16    :  
  17    :  #ifndef SYZYGY_TRACE_PARSE_PARSE_ENGINE_RPC_H_
  18    :  #define SYZYGY_TRACE_PARSE_PARSE_ENGINE_RPC_H_
  19    :  
  20    :  #include "base/files/file_path.h"
  21    :  #include "base/time/time.h"
  22    :  #include "syzygy/trace/parse/parse_engine.h"
  23    :  #include "syzygy/trace/protocol/call_trace_defs.h"
  24    :  
  25  m :  namespace trace {
  26  m :  namespace parser {
  27    :  
  28  m :  class ParseEngineRpc : public ParseEngine {
  29  m :   public:
  30  m :    ParseEngineRpc();
  31  m :    virtual ~ParseEngineRpc();
  32    :  
  33    :    // @name ParseEngine implementation
  34    :    // @{
  35  m :    virtual bool IsRecognizedTraceFile(
  36  m :        const base::FilePath& trace_file_path) override;
  37  m :    virtual bool OpenTraceFile(const base::FilePath& trace_file_path) override;
  38  m :    virtual bool ConsumeAllEvents() override;
  39  m :    virtual bool CloseAllTraceFiles() override;
  40    :    // @}
  41    :  
  42  m :   private:
  43    :    // A set of trace file paths.
  44  m :    typedef std::vector<base::FilePath> TraceFileSet;
  45    :  
  46    :    // An iterator over a set of trace file paths.
  47  m :    typedef TraceFileSet::iterator TraceFileIter;
  48    :  
  49    :    // Dispatches all of the events contained in the given trace file.
  50    :    //
  51    :    // For each segment in the trace file calls ConsumeSegmentEvents().
  52    :    //
  53    :    // @returns true on success
  54  m :    bool ConsumeTraceFile(const base::FilePath& trace_file_path);
  55    :  
  56    :    // Dispatches all of the events in the given segment buffer.
  57    :    //
  58    :    // @param file_header the header information describing the trace file.
  59    :    // @param segment_header the header information describing the segment.
  60    :    // @param buffer the full segment data buffer.
  61    :    // @param buffer_length the length of the segment data buffer (in bytes).
  62    :    // @return true on success.
  63  m :    bool ConsumeSegmentEvents(const TraceFileHeader& file_header,
  64  m :                              const TraceFileSegmentHeader& segment_header,
  65  m :                              uint8_t* buffer,
  66  m :                              size_t buffer_length);
  67    :  
  68    :    // The set of trace files to consume when ConsumeAllEvents() is called.
  69  m :    TraceFileSet trace_file_set_;
  70    :  
  71  m :    DISALLOW_COPY_AND_ASSIGN(ParseEngineRpc);
  72  m :  };
  73    :  
  74  m :  }  // namespace parser
  75  m :  }  // namespace trace
  76    :  
  77    :  #endif  // SYZYGY_TRACE_PARSE_PARSE_ENGINE_RPC_H_

Coverage information generated Fri Jul 29 11:00:21 2016.