use of org.apache.jmeter.engine.TreeClonerNoTimer in project jmeter by apache.
the class Start method cloneTree.
/**
* Create a Cloner that ignores {@link Timer} if removeTimers is true
* @param testTree {@link HashTree}
* @param removeTimers boolean remove timers
* @return {@link TreeCloner}
*/
private TreeCloner cloneTree(HashTree testTree, boolean removeTimers) {
TreeCloner cloner = null;
if (removeTimers) {
cloner = new TreeClonerNoTimer(false);
} else {
cloner = new TreeCloner(false);
}
testTree.traverse(cloner);
return cloner;
}
Aggregations