gperftools try

In recent windows to find more useful function of time statistical library, listen to colleagues gperftools is cross-platform, you try to download a handful found it does implement the dll library file (on windows can be called tcmalloc_minimal , under VS2015 engineering), and ProfilerStart () and ProfilerStop () you want to use the functional dependency signal.h file (which siginfo structure) linux in, declaring this path fails, but looked for so long this project , but also to summarize, finally a little harvest.

Download Path: https://github.com/gperftools/gperftools

Just found out that the project has just been described tcmalloc_minimal IS ON Supported Windows , they still tried for a long time.

 

 This README_windows.txt introduced a number of places to consider when using VS, tells also considered in detail.

 

Which says    "libtcmalloc_minimal.lib" / INCLUDE: "__  tcmalloc" the beginning did not understand, then to understand:

In Vs the linker 's Input under : Additional Dependencies added libtcmalloc_minimal.lib, Force Symbol References added __tcmalloc. Its Command Line in the content will be included above .

He posted a time of the project tree view, which only tcmalloc_minimal is dll project, others are exe project.

 

 

 

 

Guess you like

Origin www.cnblogs.com/Stephen-Qin/p/12037235.html
try
Recommended