Searched refs:fakeCore (Results 1 – 4 of 4) sorted by relevance
/dports/devel/hadoop/hadoop-1.2.1/src/contrib/gridmix/src/test/org/apache/hadoop/mapred/gridmix/ |
H A D | TestGridmixMemoryEmulation.java | 151 new FakeHeapUsageEmulatorPlugin(fakeCore); in testTotalHeapUsageEmulatorPlugin() 160 int numCallsPre = fakeCore.getNumCalls(); in testTotalHeapUsageEmulatorPlugin() 161 long heapUsagePre = fakeCore.getHeapUsageInMB(); in testTotalHeapUsageEmulatorPlugin() 163 int numCallsPost = fakeCore.getNumCalls(); in testTotalHeapUsageEmulatorPlugin() 164 long heapUsagePost = fakeCore.getHeapUsageInMB(); in testTotalHeapUsageEmulatorPlugin() 235 fakeCore.resetFake(); in testTotalHeapUsageEmulatorPlugin() 237 long initHeapUsage = fakeCore.getHeapUsageInMB(); in testTotalHeapUsageEmulatorPlugin() 238 long initNumCallsUsage = fakeCore.getNumCalls(); in testTotalHeapUsageEmulatorPlugin() 254 testEmulationBoundary(1F, fakeCore, fakeProgress, heapPlugin, in testTotalHeapUsageEmulatorPlugin() 261 FakeHeapUsageEmulatorCore fakeCore, in testEmulationAccuracy() argument [all …]
|
H A D | TestResourceUsageEmulators.java | 460 fakeCore.setUnitUsage(unitCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 472 int numCallsPre = fakeCore.getNumCalls(); in testCumulativeCpuUsageEmulatorPlugin() 473 long cpuUsagePre = fakeCore.getCpuUsage(); in testCumulativeCpuUsageEmulatorPlugin() 475 int numCallsPost = fakeCore.getNumCalls(); in testCumulativeCpuUsageEmulatorPlugin() 476 long cpuUsagePost = fakeCore.getCpuUsage(); in testCumulativeCpuUsageEmulatorPlugin() 505 fakeCore.reset(); in testCumulativeCpuUsageEmulatorPlugin() 506 fakeCore.setUnitUsage(1); in testCumulativeCpuUsageEmulatorPlugin() 542 fakeCore.reset(); in testCumulativeCpuUsageEmulatorPlugin() 543 fakeCore.setUnitUsage(unitCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 549 initNumCalls = fakeCore.getNumCalls(); in testCumulativeCpuUsageEmulatorPlugin() [all …]
|
/dports/devel/hadoop2/hadoop-2.7.2-src/hadoop-tools/hadoop-gridmix/src/test/java/org/apache/hadoop/mapred/gridmix/ |
H A D | TestResourceUsageEmulators.java | 449 fakeCore.setUnitUsage(unitCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 461 int numCallsPre = fakeCore.getNumCalls(); in testCumulativeCpuUsageEmulatorPlugin() 462 long cpuUsagePre = fakeCore.getCpuUsage(); in testCumulativeCpuUsageEmulatorPlugin() 464 int numCallsPost = fakeCore.getNumCalls(); in testCumulativeCpuUsageEmulatorPlugin() 465 long cpuUsagePost = fakeCore.getCpuUsage(); in testCumulativeCpuUsageEmulatorPlugin() 499 fakeCore.reset(); in testCumulativeCpuUsageEmulatorPlugin() 500 fakeCore.setUnitUsage(1); in testCumulativeCpuUsageEmulatorPlugin() 536 fakeCore.reset(); in testCumulativeCpuUsageEmulatorPlugin() 537 fakeCore.setUnitUsage(unitCpuUsage); in testCumulativeCpuUsageEmulatorPlugin() 543 initNumCalls = fakeCore.getNumCalls(); in testCumulativeCpuUsageEmulatorPlugin() [all …]
|
H A D | TestGridmixMemoryEmulation.java | 151 new FakeHeapUsageEmulatorPlugin(fakeCore); in testTotalHeapUsageEmulatorPlugin() 160 int numCallsPre = fakeCore.getNumCalls(); in testTotalHeapUsageEmulatorPlugin() 161 long heapUsagePre = fakeCore.getHeapUsageInMB(); in testTotalHeapUsageEmulatorPlugin() 163 int numCallsPost = fakeCore.getNumCalls(); in testTotalHeapUsageEmulatorPlugin() 164 long heapUsagePost = fakeCore.getHeapUsageInMB(); in testTotalHeapUsageEmulatorPlugin() 240 fakeCore.resetFake(); in testTotalHeapUsageEmulatorPlugin() 242 long initHeapUsage = fakeCore.getHeapUsageInMB(); in testTotalHeapUsageEmulatorPlugin() 243 long initNumCallsUsage = fakeCore.getNumCalls(); in testTotalHeapUsageEmulatorPlugin() 259 testEmulationBoundary(1F, fakeCore, fakeProgress, heapPlugin, in testTotalHeapUsageEmulatorPlugin() 266 FakeHeapUsageEmulatorCore fakeCore, in testEmulationAccuracy() argument [all …]
|