Package proguard.classfile.visitor
Class ParallelAllClassVisitor
java.lang.Object
proguard.classfile.visitor.ParallelAllClassVisitor
- All Implemented Interfaces:
ClassPoolVisitor
This
ClassPoolVisitor will visit all Clazz instances of the class pool in a parallel way.
For each thread, a separate ClassVisitor will be created using ParallelAllClassVisitor.ClassVisitorFactory.createClassVisitor().
The number of parallel threads is coupled to the number of available processors:
parallel_threads = Runtime.getRuntime().availableProcessors() - 1;
It is possible to override the number of threads by setting the environment variable
parallel.threads to an integer > 0.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionParallelAllClassVisitor(ParallelAllClassVisitor.ClassVisitorFactory classVisitorFactory) Create a new ParallelAllClassVisitor that will use the given factory to visit all classes in a ClassPool in a parallel way. -
Method Summary
-
Constructor Details
-
ParallelAllClassVisitor
Create a new ParallelAllClassVisitor that will use the given factory to visit all classes in a ClassPool in a parallel way.
-
-
Method Details
-
visitClassPool
- Specified by:
visitClassPoolin interfaceClassPoolVisitor
-