mirror of
https://github.com/tiennm99/tjahzi.git
synced 2026-10-15 02:17:33 +00:00
Moving the modules around, renaming etc. Also working on adding proper nodependency release to set of released artifacts.
This commit is contained in:
1 parent
adb6986460
commit
c74a31436a
1 file changed
+7
-1
+7
-1
@@ -70,7 +70,8 @@ public class AllocationTest {
|
||||
Logger logger = LogManager.getLogger(pl.tkowalcz.tjahzi.log4j2.LokiAppenderTest.class);
|
||||
|
||||
// When
|
||||
for (int i = 0; i < 1000; i++) {
|
||||
System.out.println("Warmup...");
|
||||
for (int i = 0; i < 2000; i++) {
|
||||
logger.info(logLine);
|
||||
Uninterruptibles.sleepUninterruptibly(10, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
@@ -88,10 +89,15 @@ public class AllocationTest {
|
||||
return;
|
||||
}
|
||||
|
||||
if (desc.contains("Object")) {
|
||||
return;
|
||||
}
|
||||
|
||||
allocatedMemory.computeIfAbsent(desc, __ -> new AtomicLong()).addAndGet(size);
|
||||
totalAllocatedMemory.addAndGet(size);
|
||||
});
|
||||
|
||||
System.out.println("Test...");
|
||||
for (int i = 0; i < 1000; i++) {
|
||||
logger.info(logLine);
|
||||
Uninterruptibles.sleepUninterruptibly(10, TimeUnit.MILLISECONDS);
|
||||
Reference in new issue
Block a user