Auto merge of #1986 - tromer:createjoinsplit-startprofiling, r=ebfull

CreateJoinSplit: add start_profiling() call

This solves the problem of profiling output from the CreteJoinSplit benchmarking binary displaying nonsensical large time values.
This commit is contained in:
zkbot 2017-01-05 18:07:53 +00:00
commit 06ffa210ee
1 changed files with 3 additions and 0 deletions

View File

@ -5,11 +5,14 @@
#include "../util.h"
#include "primitives/transaction.h"
#include "zcash/JoinSplit.hpp"
#include "libsnark/common/profiling.hpp"
using namespace libzcash;
int main(int argc, char **argv)
{
libsnark::start_profiling();
auto p = ZCJoinSplit::Unopened();
p->loadVerifyingKey((ZC_GetParamsDir() / "sprout-verifying.key").string());
p->setProvingKeyPath((ZC_GetParamsDir() / "sprout-proving.key").string());