211 |
|
// System.err.printf( |
212 |
|
// "Looks like we're stuck running test: %s (%d/%d)%n", |
213 |
|
// lastTestCase, currentRun, runsPerTest); |
214 |
< |
System.err.println("availableProcessors=" + |
215 |
< |
Runtime.getRuntime().availableProcessors()); |
216 |
< |
System.err.printf("cpu model = %s%n", cpuModel()); |
214 |
> |
// System.err.println("availableProcessors=" + |
215 |
> |
// Runtime.getRuntime().availableProcessors()); |
216 |
> |
// System.err.printf("cpu model = %s%n", cpuModel()); |
217 |
|
dumpTestThreads(); |
218 |
|
// one stack dump is probably enough; more would be spam |
219 |
|
break; |
225 |
|
thread.start(); |
226 |
|
} |
227 |
|
|
228 |
< |
public static String cpuModel() { |
229 |
< |
try { |
230 |
< |
Matcher matcher = Pattern.compile("model name\\s*: (.*)") |
231 |
< |
.matcher(new String( |
232 |
< |
Files.readAllBytes(Paths.get("/proc/cpuinfo")), "UTF-8")); |
233 |
< |
matcher.find(); |
234 |
< |
return matcher.group(1); |
235 |
< |
} catch (Exception ex) { return null; } |
236 |
< |
} |
228 |
> |
// public static String cpuModel() { |
229 |
> |
// try { |
230 |
> |
// Matcher matcher = Pattern.compile("model name\\s*: (.*)") |
231 |
> |
// .matcher(new String( |
232 |
> |
// Files.readAllBytes(Paths.get("/proc/cpuinfo")), "UTF-8")); |
233 |
> |
// matcher.find(); |
234 |
> |
// return matcher.group(1); |
235 |
> |
// } catch (Exception ex) { return null; } |
236 |
> |
// } |
237 |
|
|
238 |
|
public void runBare() throws Throwable { |
239 |
|
currentTestCase = this; |