vpelletier / pprofile

Line-granularity, thread-aware deterministic and statistic pure-python profiler
GNU General Public License v2.0
445 stars 28 forks source link

Exclude syspath in python script #39

Open aswinshriramt opened 3 years ago

aswinshriramt commented 3 years ago

Hi, I am trying to profile my script by writing a script that takes the module and profiles it. But unlike command line argument (where I can use exclude syspath to avoid profiling python import libraries), there isn't an option to do in script? If yes, can you help me with it?

vpelletier commented 3 years ago

Hello,

The intended way to do that is like how the command line does it: