Skip to content

Commit

Permalink
Connect collector to reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
debermudez committed Aug 2, 2023
1 parent 9cfcbd2 commit 14ffbf2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/c++/perf_analyzer/perf_analyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ PerfAnalyzer::WriteReport()
void
PerfAnalyzer::GenerateProfileExportReport()
{
reporter_->ConvertToJson(collector_->GetData(), collector_->GetVersion());
reporter_->OutputToFile(params_->profile_export_file);
}

Expand Down
8 changes: 7 additions & 1 deletion src/c++/perf_analyzer/raw_data_collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ class RawDataCollector {
/// @param request_records The request information for the current experiment.
void AddData(PerfMode& id, std::vector<RequestRecord>&& request_records);

/// Get the raw experiment data for the profile
/// @return Raw experiment data
std::vector<Experiment>& GetData() { return experiments_; }

std::string& GetVersion() { return version_; }

private:
RawDataCollector() = default;

Expand All @@ -94,6 +100,6 @@ class RawDataCollector {
};

std::vector<Experiment> experiments_{};
std::string version{VERSION};
std::string version_{VERSION};
};
}} // namespace triton::perfanalyzer

0 comments on commit 14ffbf2

Please sign in to comment.