Task optimization之superglue分析.

开启logging (例子F:\wamp\www\git_repos\GitHub\GeneralUtility\superglue-master\examples\src\logging.cpp)

#include "sg/option/instr_trace.hpp"

定义option

struct MyOptions : public DefaultOptions<MyOptions> {
    typedef Enable TaskName;
    typedef Trace<MyOptions> Instrumentation;
};

dump到文件

Trace<MyOptions>::dump("execution.log");

 

图形化显示

F:\sw\Python25_2>path %path%;F:\sw\Python25_2\Lib\site-packages\wx-2.8-msw-ansi\
wx

F:\sw\Python25_2>python F:\wamp\www\git_repos\GitHub\GeneralUtility\superglue-ma
ster\scripts\drawsched.py F:\wamp\www\git_repos\GitHub\GeneralUtility\superglue-
master\vsproj\vsproj\execution.log

 

Powered by Jekyll and Theme by solid

本站总访问量