Update 'Debugging with MagicBox'
+13
-1
@@ -42,4 +42,16 @@ Use this new configuration to connect your IDE to MagicBox. The game will begin
|
||||
|
||||
Breakpoint was hit!
|
||||
|
||||

|
||||

|
||||
|
||||
### Profiling your code
|
||||
|
||||
Another important aspect of development is to profile your code. Not just to see how slow your new routine runs; the profiler will catch every error masked due to empty try-catch blocks. It will tell you when you are generating 2000 objects a second. Your new branch might appear to be running fine but have *hidden issues*.
|
||||
|
||||

|
||||
|
||||
There are many choices available free and otherwise for Java profilers. We have tried most. The Profiler of choice for the Magicbane team is [YourKit](https://www.yourkit.com/). The game has built-in support for profiling as it does debugging.
|
||||
|
||||
`./mbstart.sh -profile`
|
||||
|
||||
The YourKit agent is not being shipped with the image. Choice of profiler is the perrogative of your team.
|
||||
|
||||
Reference in New Issue
Block a user