Comments (4)
[updated to include more test runs]
I posit the difference in test runs has to do with the different IDEs used(Eclipse for the one minute, IntelliJ for the five minute), that and/or the way I am using Guice for DI. After further investigation, I was not creating a singleton via DI, and thus com.jed.core.MotherBrain.start() was getting called multiple times...
com.jed.* packages most used from a one minute on 2014-11-07 test using Mission Control
Stack Trace | Sample Count | Percentage(%) |
---|---|---|
com.jed.state.GameMap.update() | 13 | 27.66 |
com.jed.core.QuadTree.clear() | 3 | 6.383 |
com.jed.core.MotherBrain.start() | 3 | 6.383 |
com.jed.core.QuadTree.getObjects() | 2 | 4.255 |
com.jed.core.Collision$MinMax.(Collision, Boundary, Vector) | 1 | 2.128 |
com.jed.actor.Boundary.getWorldPosition() | 1 | 2.128 |
com.jed.actor.Player$Walking.update() | 1 | 2.128 |
com.jed.core.Collision.compareTo(Object) | 1 | 2.128 |
com.jed.core.QuadTree.insert(Entity) | 1 | 2.128 |
com.jed.core.Collision.detectCollision() | 1 | 2.128 |
com.jed.* packages most used from a five minute on 2014-11-08 test using Mission Control.
Stack Trace | Sample Count | Percentage(%) |
---|---|---|
com.jed.core.Collision.detectCollision() | 8 | 5.298 |
com.jed.core.MotherBrain.start() | 7 | 4.636 |
com.jed.core.QuadTree.insert(Entity) | 6 | 3.974 |
com.jed.core.QuadTree.clear() | 6 | 3.974 |
com.jed.core.QuadTree.(Vector, int, Rectangle, Displayable) | 4 | 2.649 |
com.jed.state.GameMap.detectCollisions() | 3 | 1.987 |
com.jed.core.QuadTree.getObjects() | 2 | 1.325 |
com.jed.state.GameMap.update() | 1 | 0.662 |
com.jed.actor.Boundary.getWorldPosition() | 1 | 0.662 |
com.jed.state.GameMap.scrollMap() | 1 | 0.662 |
com.jed.state.MapTile.draw() | 1 | 0.662 |
com.jed.core.QuadTree.retrieve(List, Entity) | 1 | 0.662 |
com.jed.actor.Player.draw() | 1 | 0.662 |
com.jed.state.GameStateManager.draw() | 1 | 0.662 |
com.jed.* packages most used from a one minute test on 2014-11-09 test using Mission Control.
Stack Trace | Sample Count | Percentage(%) |
---|---|---|
com.jed.state.GameMap.update() | 20 | 42.553 |
com.jed.core.QuadTree.clear() | 4 | 8.511 |
com.jed.core.QuadTree.insert(Entity) | 4 | 8.511 |
com.jed.state.GameMap.drawMap() | 3 | 6.383 |
com.jed.core.Collision.detectCollision() | 2 | 4.255 |
com.jed.state.PlayState.getInput() | 1 | 2.128 |
from fuzzy-octo-shame.
I totally have not written any unit tests, I updated the due date of this issues milestone to reflect this fact.
from fuzzy-octo-shame.
Five Minute Test Run using 0.1.8-SNAPSHOT
Stack Trace | Sample Count | Percentage(%) |
---|---|---|
com.jed.state.GameMap.update() | 46 | 13.939 |
com.jed.core.QuadTree.insert(AbstractEntity) | 26 | 7.879 |
com.jed.core.Collision.detectCollision() | 9 | 2.727 |
com.jed.state.GameMap.detectCollisions() | 5 | 1.515 |
com.jed.core.QuadTree.(Vector, int, Rectangle, Displayable) | 4 | 1.212 |
com.jed.core.MotherBrain.start() | 4 | 1.212 |
com.jed.state.GameMap.drawMap() | 3 | 0.909 |
com.jed.core.QuadTree.getObjects() | 2 | 0.606 |
com.jed.state.GameStateManager.update() | 2 | 0.606 |
com.jed.core.Collision.resolveCollision() | 1 | 0.303 |
com.jed.actor.Player.update() | 1 | 0.303 |
com.jed.core.QuadTree.retrieve(List, AbstractEntity) | 1 | 0.303 |
from fuzzy-octo-shame.
I still have not written any unit tests, I updated the due date of this issues milestone to reflect this fact.
from fuzzy-octo-shame.
Related Issues (20)
- Research JMX
- Use Gradle as the build system.
- Add Internationalization
- Clean Up POM.xml
- Research more IoC/DI libraries. HOT 1
- Use Maven JGit-Flow Plugin HOT 1
- VSync
- Building with JDK 7 Fails HOT 1
- Choose a License
- Fix Input
- Add Kotlin Support HOT 1
- Fix the description HOT 1
- Visualize Class and Package Dependencies
- Create Documentation HOT 1
- Architect AI API
- Make Unit Tests "headless"
- Create more robust unit tests HOT 1
- Research a better way to add controller support HOT 1
- Collision Detection Bug(The Sad Tragedy of Micro-Optimization Theater II:Coding Horror Boogaloo) HOT 2
- AbstractInputListener.mouseWheelMoved NotImplementedException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuzzy-octo-shame.