add include
authorDenis Davydov <davydden@gmail.com>
Fri, 8 Jun 2018 12:36:35 +0000 (14:36 +0200)
committerDenis Davydov <davydden@gmail.com>
Fri, 8 Jun 2018 12:36:35 +0000 (14:36 +0200)
Intel-Trace-Analyzer-and-Collector.md

index f93aeed..51f7537 100644 (file)
@@ -36,12 +36,19 @@ ADD_DEFINITIONS(-DUSE_VT)
 and then use
 ```
 #ifdef USE_VT
-VT_Region region("my_name", “my_group", __FILE__, __LINE__);
+#include <VT.h>
+#endif
+
+int main (int argc,char **argv)
+{
+#ifdef USE_VT
+  VT_Region region("my_name", “my_group", __FILE__, __LINE__);
 #endif
 ...
 #ifdef USE_VT
-region.end();
+  region.end();
 #endif
+}
 ```
 Then build as usual
 ```

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.