public void startProfiler() { profiler = new Profiler().startCollecting(); }
/** * Prepares this performance benchmark. * * @param repository the repository to use * @param credentials credentials of a user with write access * @throws Exception if the benchmark can not be prepared */ public void setUp(Repository repository, Credentials credentials) throws Exception { this.repository = repository; this.credentials = credentials; this.sessions = new LinkedList<Session>(); this.threads = new LinkedList<Thread>(); this.running = true; haltRequested = false; beforeSuite(); if (PROFILE) { profiler = new Profiler().startCollecting(); } }