From bff17bffc7b802beef64377ad624cd7760e6a41f Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 16 Apr 2020 14:11:27 +0900 Subject: [PATCH] how to profile by perf/vtune --- readme.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/readme.md b/readme.md index f755abf..ea4233a 100644 --- a/readme.md +++ b/readme.md @@ -82,6 +82,20 @@ make MCL_USE_GMP=0 ``` Define `MCL_USE_VINT` if using C++ header files. +## How to profile on Linux + +### Use perf +``` +make MCL_USE_PROF=1 bin/bls12_test.exe +env MCL_PROF=1 bin/bls12_test.exe +``` + +### Use Intel VTune profiler +Supporse VTune is installed in `/opt/intel/vtune_amplifier/`. +``` +make MCL_USE_PROF=2 bin/bls12_test.exe +env MCL_PROF=2 bin/bls12_test.exe +``` ## How to build on 32-bit x86 Linux