Skip to content

Conversation

@Sujay2478
Copy link
Contributor

Enhanced the logging capability and added the PerformanceMonitor class

@Sujay2478 Sujay2478 requested a review from Sajtospoga01 March 22, 2024 20:14
@Sujay2478 Sujay2478 self-assigned this Mar 22, 2024

std::string PerformanceMonitor::getMemoryUsage()
{
std::string memoryUsage = "Memory Usage: ";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually get any data?

}

void ThreadLogger::logPerformance(const std::string& category, const std::string& data) {
std::ostringstream ss;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the main log function to log messages. this is not threadsafe (hence the whole point of the logger), and using multiple methods to queue messages would not be too intuitive. You could opt to use a helper method instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants