使用说明:
https://www.ctolib.com/tracetool.html
博文源码:
https://github.com/froglogic/tracetool
2.TraceTool 跟踪工具的瑞士军刀(C++版使用)
https://www.cnblogs.com/findumars/p/6360866.html
TraceTool 12.7 blog
https://www.codeproject.com/articles/5498/tracetool-the-swiss-army-knife-of-trace
https://github.com/capslock66/Tracetool
使用方法
1.运行TraceTool.exe
2.过滤器筛选 stkui
3.程序中设置代码
TRACE(_T("log:CRealTimeView::OnMouseMove()called"));
TRACE("code page = %d\n", m_translation.charset);
step 1: run F:\stock\TskingVS2019\tracetool\Viewer\TraceTool.exe
step 2: add c++ code
TRACE(" stock index = %d , I am Thread %d\n", i, omp_get_thread_num());
step 2: Tracetool->ODS output
22:47:27:734 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 757 , I am Thread 8
22:47:27:738 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 673 , I am Thread 7
22:47:27:741 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 420 , I am Thread 4
22:47:27:744 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 166 , I am Thread 1
22:47:27:748 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 337 , I am Thread 3
22:47:27:751 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 589 , I am Thread 6
22:47:27:755 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 842 , I am Thread 9
22:47:27:758 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 252 , I am Thread 2
22:47:27:761 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 506 , I am Thread 5
22:47:27:765 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 758 , I am Thread 8
22:47:27:768 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 75 , I am Thread 0
22:47:27:771 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 674 , I am Thread 7
22:47:27:775 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 421 , I am Thread 4
22:47:27:778 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 167 , I am Thread 1
22:47:27:782 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 590 , I am Thread 6
22:47:27:785 F:\stock\TskingVS2019\src\Client\StkUI\View\CustomSelectorView.cpp(2012) : atlTraceGeneral - stock index = 337 , I am Thread 3
22:54:15:173 User credentials refresh needed.