forked from classgraph/classgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScanEverything.java
More file actions
36 lines (34 loc) · 1.17 KB
/
ScanEverything.java
File metadata and controls
36 lines (34 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.xyz;
/**
* ScanEverything.
*/
public class ScanEverything {
// @Test
// public void scanEverything() throws IOException {
// final long t0 = System.nanoTime();
// try (ScanResult scanResult = new ClassGraph() //
// // .verbose() //
// // .acceptPackages("io.github") //
// // .enableAllInfo() //
// .enableSystemPackages() //
// .disableJarScanning() //
// .disableModuleScanning() //
// .scan() //
// //.getAllClasses() //
// // .loadClasses() //
// ) {
// final long t1 = System.nanoTime();
// System.out.println((t1 - t0) * 1.0e-9);
//
// System.out.println(scanResult.getAllResources().size());
//
// for (int i = 0; i < 500; i++) {
// scanResult.getAllResources().forEachByteArray((r, b) -> {
// });
// }
//
// final long t2 = System.nanoTime();
// System.out.println((t2 - t1) * 1.0e-9);
// }
// }
}