Skip to content

Commit

Permalink
[perf] Fix the issue of perf results to OSS (#297)
Browse files Browse the repository at this point in the history
Co-authored-by: 宗鑫 <[email protected]>
  • Loading branch information
zongxin1993 and 宗鑫 authored Dec 1, 2023
1 parent 7a421d4 commit 1905634
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/GraphCtrl/GraphPipeline/GPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ CStatus GPipeline::perf(std::ostream& oss) {
CGRAPH_FUNCTION_BEGIN
CGRAPH_ASSERT_INIT_THROW_ERROR(false)

status = GPerf::perf(this);
status = GPerf::perf(this, oss);
CGRAPH_FUNCTION_END
}

Expand Down
4 changes: 2 additions & 2 deletions src/GraphCtrl/GraphPipeline/_GPerf/GPerf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

CGRAPH_NAMESPACE_BEGIN

CStatus GPerf::perf(GPipelinePtr pipeline) {
CStatus GPerf::perf(GPipelinePtr pipeline, std::ostream& oss) {
CGRAPH_FUNCTION_BEGIN
CGRAPH_ASSERT_NOT_NULL(pipeline)

Expand All @@ -22,7 +22,7 @@ CStatus GPerf::perf(GPipelinePtr pipeline) {
status = pipeline->process();
CGRAPH_FUNCTION_CHECK_STATUS

status = pipeline->dump();
status = pipeline->dump(oss);
CGRAPH_FUNCTION_CHECK_STATUS

status = recover(pipeline);
Expand Down
2 changes: 1 addition & 1 deletion src/GraphCtrl/GraphPipeline/_GPerf/GPerf.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class GPerf : public GraphObject {
* @param pipeline
* @return
*/
static CStatus perf(GPipeline* pipeline);
static CStatus perf(GPipeline* pipeline, std::ostream& oss);

/**
* 注入对应的切面信息
Expand Down

0 comments on commit 1905634

Please sign in to comment.