MCPcopy Create free account
hub / github.com/apache/mesos / version

Function version

src/linux/perf.cpp:195–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195Future<Version> version()
196{
197 internal::Perf* perf = new internal::Perf({"--version"});
198 Future<string> output = perf->output();
199 spawn(perf, true);
200
201 return output
202 .then([](const string& output) -> Future<Version> {
203 return parseVersion(output);
204 });
205};
206
207
208// Since there is a lot of variety in perf(1) version strings

Callers 5

supportedFunction · 0.70
TEST_FFunction · 0.50
getVersionMethod · 0.50
docker.cppFile · 0.50
getVersionMethod · 0.50

Calls 4

parseVersionFunction · 0.85
outputMethod · 0.80
spawnFunction · 0.50
thenMethod · 0.45

Tested by 1

TEST_FFunction · 0.40