Skip to content

Commit

Permalink
update pass manager
Browse files Browse the repository at this point in the history
  • Loading branch information
itikhono committed Jul 23, 2024
1 parent 6740084 commit 0689fa0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/core/src/pass/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Profiler {
public:
explicit Profiler(std::string manager_name) : m_visualize("OV_ENABLE_VISUALIZE_TRACING"),
m_serialize("OV_ENABLE_SERIALIZE_PASS"),
m_profile_pass("OV_ENABLE_PROFILE_PASS", true),
m_profile_pass("OV_ENABLE_PROFILE_PASS"),
m_manager_name(std::move(manager_name)) {
if (m_profile_pass.is_enabled() && !m_profile_pass.is_bool()) {
m_file.open(m_profile_pass.get_str(), std::ios_base::app);
Expand Down Expand Up @@ -155,11 +155,12 @@ class Profiler {
std::cout << name << " " << stopwatch.get_milliseconds() << "ms " << (applied ? "+": "-") << std::endl;
} else if (m_file.is_open()){
if (is_pass_manager) {
m_file << "m;";
m_file << "m;" << name << ";" << stopwatch.get_timer_value().count()
<< ";" << (applied ? "1;" : "0;") << std::endl;
} else {
m_file << "t;";
}
m_file << name << ";" << stopwatch.get_timer_value().count() << ";" << (applied ? "1;" : "0;") << std::endl;
m_file << "t;" << name << ";" << m_manager_name << ";"
<< stopwatch.get_timer_value().count() << ";"
<< (applied ? "1" : "0") << ";" << std::endl;
} else {
// error?
}
Expand Down

0 comments on commit 0689fa0

Please sign in to comment.