You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
+
// All rights not expressly granted are reserved.
4
+
//
5
+
// This software is distributed under the terms of the GNU General Public
6
+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
+
//
8
+
// In applying this license CERN does not waive the privileges and immunities
9
+
// granted to it by virtue of its status as an Intergovernmental Organization
10
+
// or submit itself to any jurisdiction.
11
+
12
+
#include"QualityControl/Bookkeeping.h"
13
+
#include<iostream>
14
+
#include<boost/program_options.hpp>
15
+
#include"BookkeepingApi/BkpProtoClientFactory.h"
16
+
#include"QualityControl/Activity.h"
17
+
#include<Common/Timer.h>
18
+
#include"QualityControl/QcInfoLogger.h"
19
+
20
+
usingnamespacestd;
21
+
namespacebpo= boost::program_options;
22
+
usingnamespaceo2::bkp::api;
23
+
usingnamespaceo2::bkp::api::proto;
24
+
usingnamespaceo2::quality_control::core;
25
+
26
+
/**
27
+
* A small utility to stress test the bookkeeping api.
28
+
*/
29
+
30
+
intmain(int argc, constchar* argv[])
31
+
{
32
+
bpo::options_description desc{ "Options" };
33
+
desc.add_options()("help,h", "Help screen")("url,u", bpo::value<std::string>()->required(), "URL to the Bookkeeping")("run,r", bpo::value<int>())("max,m", bpo::value<int>()->default_value(10000), "Max number of executions, default: 10000")("printCycles,p", bpo::value<int>()->default_value(1000), "We print every X cycles, default: 1000")("printActivity", bpo::value<bool>()->default_value(false), "just to check that we get something in the activity.")("delay,d", bpo::value<int>()->default_value(0), "Minimum delay between calls in ms, default 0");
0 commit comments