Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
reinago committed Dec 21, 2023
1 parent 0c7d90e commit 65c41dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ void FrameStatistics_Service::mark_frame_cb() {
auto now = std::chrono::steady_clock::time_point::clock::now();

++m_statistics.rendered_frames_count;
core::utility::log::Log::DefaultLog.WriteInfo("rendered_frames_count is now %u", m_statistics.rendered_frames_count);
//core::utility::log::Log::DefaultLog.WriteInfo(
// "rendered_frames_count is now %u", m_statistics.rendered_frames_count);

m_statistics.elapsed_program_time_milliseconds =
std::chrono::duration_cast<std::chrono::milliseconds>(now - m_program_start_time);
Expand Down
2 changes: 2 additions & 0 deletions frontend/services/profiling_service/PerformanceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ handle_type PerformanceManager::add_timer(std::unique_ptr<Itimer> t) {

void PerformanceManager::startFrame(frame_type frame) {
current_frame = frame;
//core::utility::log::Log::DefaultLog.WriteInfo("PerformanceManager: starting frame %u", frame);
//gl_timer::last_query = 0;
gl_timer::new_frame(frame);
// we never reset the global counter!
Expand Down Expand Up @@ -194,6 +195,7 @@ void PerformanceManager::collect_timer_and_append(Itimer* timer, frame_info& the
}

void PerformanceManager::endFrame(frame_type frame) {
//core::utility::log::Log::DefaultLog.WriteInfo("PerformanceManager: ending frame %u", frame);
#ifdef MEGAMOL_USE_OPENGL
stop_timer(whole_frame_gl);

Expand Down
1 change: 1 addition & 0 deletions frontend/services/profiling_service/Profiling_Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ void Profiling_Service::log_graph_event(
if (this->include_graph_events) {
const auto frames_rendered = static_cast<int64_t>(
_requestedResourcesReferences[4].getResource<frontend_resources::FrameStatistics>().rendered_frames_count);
//core::utility::log::Log::DefaultLog.WriteInfo("profiler logging graph change for frame %u", frames_rendered);
log_buffer << frames_rendered << ";Graph;" << parent << ";" << name << ";" << comment << ";0;0;GraphEvent;;;"
<< std::endl;
}
Expand Down

0 comments on commit 65c41dc

Please sign in to comment.