mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
[FancyZones] Trace various function calls (#10183)
* Implement CallTracer * Add CallTracer to various places * Newline * Fix unit tests not compiling for some reason * Add macro remove some trace calls * Add indentation * Add semicolon * Update src/modules/fancyzones/lib/CallTracer.cpp Co-authored-by: Enrico Giordani <enricogior@users.noreply.github.com> * Actually indent/unindent output * Fix initial indent level Co-authored-by: Enrico Giordani <enrico.giordani@gmail.com> Co-authored-by: Enrico Giordani <enricogior@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "pch.h"
|
||||
|
||||
#include "on_thread_executor.h"
|
||||
#include "CallTracer.h"
|
||||
|
||||
OnThreadExecutor::OnThreadExecutor() :
|
||||
_shutdown_request{ false }, _worker_thread{ [this] { worker_thread(); } }
|
||||
@@ -30,6 +31,7 @@ void OnThreadExecutor::worker_thread()
|
||||
{
|
||||
task_t task;
|
||||
{
|
||||
CallTracer callTracer(__FUNCTION__ "(loop)");
|
||||
std::unique_lock task_lock{ _task_mutex };
|
||||
_task_cv.wait(task_lock, [this] { return !_task_queue.empty() || _shutdown_request; });
|
||||
if (_shutdown_request)
|
||||
|
||||
Reference in New Issue
Block a user