com.ats.executor.ExecutionStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ats-automated-testing Show documentation
Show all versions of ats-automated-testing Show documentation
Code generator library to create and execute GUI automated tests
The newest version!
package com.ats.executor;
import java.lang.management.ManagementFactory;
import java.util.TimerTask;
import com.sun.management.OperatingSystemMXBean;
public class ExecutionStatistics extends TimerTask{
private OperatingSystemMXBean osBean = ManagementFactory.getPlatformMXBean(OperatingSystemMXBean.class);
public ExecutionStatistics() {}
@Override
public void run() {
System.out.println("xx:" + (osBean.getCpuLoad() * 100) + ":" + osBean.getCommittedVirtualMemorySize());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy