![]() ![]() We measure the throughput using an improvised benchmark.Įvery time a task runs, the benchmark logic stores the current timestamp to a collection and removes all timestamps that point to a time earlier than the current time minus some interval. If an attempt fails, no exception is raised. It repeatedly tries to create a path in the file system (we use createDirectories() from NIO2 for that). Let’s say we have the following application. ![]() In the example below, we’ll see how we can benefit from profiling even when dealing with very simple apps. Many people believe that they don’t need to learn how to profile as long as they don’t write high-load applications. You can attach either of them to a Java process and view the profiling report directly from IntelliJ IDEA. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |