MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / readFile

Method readFile

test/one/profiler/test/TestProcess.java:357–364  ·  view source on GitHub ↗
(String fileId)

Source from the content-addressed store, hash-verified

355 }
356
357 public Output readFile(String fileId) {
358 File f = getFile(fileId);
359 try (Stream<String> stream = Files.lines(f.toPath())) {
360 return new Output(stream.toArray(String[]::new));
361 } catch (IOException | UncheckedIOException e) {
362 return new Output(new String[0]);
363 }
364 }
365}

Callers 15

waitForExitMethod · 0.95
profileMethod · 0.95
jvmFirstMethod · 0.80
profilerFirstMethod · 0.80
jvmInBetweenMethod · 0.80
differentThreadMethod · 0.80
cyclesMethod · 0.80
cacheMissesMethod · 0.80
pmuIncompatibleMethod · 0.80
loadLibraryMethod · 0.80
javaAgentMethod · 0.80

Calls 1

getFileMethod · 0.95

Tested by

no test coverage detected