MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / LocationScope

Method LocationScope

Tools/CodeLocations.cpp:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35LocationScope::LocationScope(const char* file, int line, const char* function) :
36 file(file), function(function), line(line)
37{
38 output_scope = OnlineOptions::singleton.has_option("location_scope");
39 time_scope = OnlineOptions::singleton.has_option("location_time");
40 if (output_scope)
41 cerr << "call to " << file << ":" << line << ", " << function
42 << endl;
43 else
44 CodeLocations::maybe_output(file, line, function);
45 if (time_scope)
46 timer.start();
47}
48
49LocationScope::~LocationScope()
50{

Callers

nothing calls this directly

Calls 2

has_optionMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected