Squelch profiling output

37 views
Skip to first unread message

Dan Middleton

unread,
Jul 20, 2018, 5:59:14 PM7/20/18
to libsnark
Hi,
Is there a build flag to shut off the profiling output?
I can go modify libff's profiling.cpp
bool inhibit_profiling_info = true;
bool inhibit_profiling_counters = true;

But I'd prefer if I can write my libsnark-based application such that other users can just follow a build file and not have to also modify the chain of dependencies.

There's also this kind of output that isn't controlled by those profiling bools. 
Calling r1cs_ppzksnark_generator

* QAP number of variables: 74

* QAP pre degree: 81

...


Calling r1cs_ppzksnark_prover

* Elements of w skipped: 33 (47.14%)

* Elements of w processed with special addition: 35 (50.00%)

* Elements of w remaining: 2 (2.86%)

...


Thanks,
Dan

middle...@gmail.com

unread,
May 1, 2019, 4:51:42 PM5/1/19
to libsnark
I never found a build flag, but I did find you can squelch the libff profiling output by setting that global within your own application like this:

libff::inhibit_profiling_info = true;


The other counter outputs look like they come from a multiexp.tcc that has been copied around a few places. There's no build or runtime conditionals around those so you have to comment them out manually in your own dependency tree.

Regards,
Dan
Reply all
Reply to author
Forward
0 new messages