41 | | ^(Describe your design here.)^ |
| 41 | After playing with the vm arguments and launch configurations I figured out that using the HPROF profiler of the JVM may be omitted to improve development process. |
| 42 | |
| 43 | In the '''author.FakeAuthorMain.launch''' conf file there a '''-agentlib:hprof=cpu=samples,interval=5,depth=30''' argument passed to the JVM. |
| 44 | |
| 45 | This means that a profiler thread runs each 5 milliseconds, gathers information from the running Sophie process, and then sleeps again. |
| 46 | |
| 47 | This is useful when developing something for Sophie with the intent to use this performance log for optimizations. |
| 48 | |
| 49 | In most cases this isn't the case so using the profiler is pointless. |
| 50 | |
| 51 | Turning it off leads to 20-30% startup time reduction which is significant, so I'll remove this from the '''author.FakeAuthorMain.launch''' (and '''reader.FakeReaderMain.launch''' respectively). |
| 52 | |
| 53 | For convenience, I'll create '''author.FakeAuthorMain-Debug.launch''' (and '''reader.FakeReaderMain-Debug.launch''' respectively), which have this option turned on. In the future more similar differences might occur. |