Skip to content

Instantly share code, notes, and snippets.

@hlian
Created May 8, 2011 19:43
Show Gist options
  • Save hlian/961634 to your computer and use it in GitHub Desktop.
Save hlian/961634 to your computer and use it in GitHub Desktop.
cos 426 video game profile report from shark
# Report 3 - Session 2 - Time Profile of game
SharkProfileViewer
# Generated from the visible portion of the outline view
+ 98.4%, start, game
| + 98.4%, main, game
| | + 91.9%, GLUTMainLoop(), game
| | | + 91.9%, glutMainLoop, GLUT
| | | | + 91.9%, -[GLUTApplication run], GLUT
| | | | | + 91.1%, __glutProcessWorkEvents, GLUT
| | | | | | + 91.1%, processWindowWorkList, GLUT
| | | | | | | + 91.1%, -[GLUTView handleWorkEvent:], GLUT
| | | | | | | | + 90.8%, -[GLUTView drawRect:], GLUT
| | | | | | | | | + 90.7%, GLUTRedraw(), game
| | | | | | | | | | + 82.3%, DrawEntities(R3Scene*), game
| | | | | | | | | | | + 62.0%, UpdateAirplanes(R3Scene*, double, double), game
| | | | | | | | | | | | + 38.6%, Airplane::Tick(R3Scene*, double), game
| | | | | | | | | | | | | + 38.5%, Airplane::ShootBullet(R3Scene*, double), game
| | | | | | | | | | | | | | + 38.3%, GenerateBullet(R3Scene*, R3Ray, Airplane*, BulletType, AirplaneType), game
| | | | | | | | | | | | | | | + 38.2%, ComputeCollision(R3Scene*, Bullet*), game
| | | | | | | | | | | | | | | | + 30.9%, IntersectWithAirplanes(R3Scene*, R3Ray, AirplaneType), game
| | | | | | | | | | | | | | | | | + 30.1%, ComputeIntersection(R3Scene*, Airplane*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 13.6%, ComputeIntersection(R3Box*, R3Ray), game
| | | | | | | | | | | | | | | | | | | + 8.0%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | | | | | | | | | + 1.7%, R3Vector::Dot(R3Vector const&) const, game
| | | | | | | | | | | | | | | | | | | + 1.4%, R3Intersection::operator=(R3Intersection const&), game
| | | | | | | | | | | | | | | | | | | + 1.1%, R3Ray::R3Ray(R3Ray const&), game
| | | | | | | | | | | | | | | | | | | | + 1.0%, R3Line::R3Line(R3Line const&), game
| | | | | | | | | | | | | | | | | | | + 1.0%, withinRect(R3Point, R3Box*, int), game
| | | | | | | | | | | | | | | | | | + 9.5%, Airplane::Transform(), game
| | | | | | | | | | | | | | | | | | | + 4.8%, R3Matrix::Rotate(R3Vector const&, double), game
| | | | | | | | | | | | | | | | | | | | + 3.4%, R3Matrix::operator*=(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | | + 3.3%, R3Matrix::Multiply(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | | | + 2.8%, operator*(R3Matrix const&, R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | + 1.3%, R3Vector::Normalize(), game
| | | | | | | | | | | | | | | | | | + 3.5%, R3Ray::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | + 3.4%, R3Line::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | + 2.2%, R3Matrix::Inverse() const, game
| | | | | | | | | | | | | | | | | | | | | + 1.9%, R3Matrix::Invert(), game
| | | | | | | | | | | | | | | | | | | | | | 1.0%, R3MatrixDet3(double, double, double, double, double, double, double, double, double), game
| | | | | | | | | | | | | | | | | | | | + 1.2%, R3Line::Transform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | + 1.3%, R3Ray::Transform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | + 1.3%, R3Line::Transform(R3Matrix const&), game
| | | | | | | | | | | | | | | | + 6.7%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | | | + 6.6%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | | | | + 6.3%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | | | | + 5.6%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | | | | | | | | | + 1.6%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | | | | | | | | | + 1.0%, R3Plane::R3Plane(R3Point const&, R3Point const&, R3Point const&), game
| | | | | | | | | | | | + 18.9%, UpdatePosition(R3Scene*, double, double, Airplane*), game
| | | | | | | | | | | | | + 18.9%, ComputeCollision(R3Scene*, double, double, Airplane*), game
| | | | | | | | | | | | | | + 15.3%, IntersectWithAirplanes(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | + 15.3%, IntersectWithAirplanes(R3Scene*, R3Ray, AirplaneType), game
| | | | | | | | | | | | | | | | + 14.8%, ComputeIntersection(R3Scene*, Airplane*, R3Ray), game
| | | | | | | | | | | | | | | | | + 6.7%, ComputeIntersection(R3Box*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 4.0%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | | | | | | + 4.7%, Airplane::Transform(), game
| | | | | | | | | | | | | | | | | | + 2.3%, R3Matrix::Rotate(R3Vector const&, double), game
| | | | | | | | | | | | | | | | | | | + 1.7%, R3Matrix::operator*=(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | + 1.7%, R3Matrix::Multiply(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | | + 1.4%, operator*(R3Matrix const&, R3Matrix const&), game
| | | | | | | | | | | | | | | | | + 1.6%, R3Ray::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | + 1.6%, R3Line::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | + 1.1%, R3Matrix::Inverse() const, game
| | | | | | | | | | | | | | + 3.6%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | + 3.5%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | | + 3.4%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | | + 3.0%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | + 4.5%, UpdateAI(R3Scene*, double), game
| | | | | | | | | | | | | + 4.5%, UpdateAI(R3Scene*, Airplane*, double), game
| | | | | | | | | | | | | | + 3.5%, ObstacleAvoidance(R3Scene*, Airplane*, R3Vector*), game
| | | | | | | | | | | | | | | + 3.4%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | | + 3.4%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | | | + 3.3%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 2.8%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | + 15.1%, RenderAirplanes(R3Scene*, double, double, bool), game
| | | | | | | | | | | | + 9.1%, R3Mesh::Draw() const, game
| | | | | | | | | | | | | 2.2%, R3Point::operator[](int) const, game
| | | | | | | | | | | | | 1.2%, std::vector<R3MeshVertex*, std::allocator<R3MeshVertex*> >::size() const, game
| | | | | | | | | | | | + 3.3%, OcclusionCull(R3Scene*, Airplane*), game
| | | | | | | | | | | | | + 3.3%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | + 3.2%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | + 3.1%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | + 2.7%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | + 1.0%, FrustrumCull(R3Scene*, Airplane*), game
| | | | | | | | | | | + 3.7%, RenderParticles(R3Scene*, double, double), game
| | | | | | | | | | | | + 2.1%, RenderSmoke(R3Scene*, R3Particle*), game
| | | | | | | | | | | | | + 1.5%, glBegin_Exec, GLEngine
| | | | | | | | | | | | | | + 1.5%, gleDoDrawDispatchCore, GLEngine
| | | | | | | | | | | | | | | + 1.1%, gldUpdateDispatch, GeForceGLDriver
| | | | | | | | | | + 6.8%, DrawScene(R3Scene*), game
| | | | | | | | | | | + 6.8%, Terrain::Draw(R3Scene*), game
| | | | | | | | | | | | + 5.8%, R3Mesh::Draw() const, game
| | | | | | | | | | | | | 1.3%, R3Point::operator[](int) const, game
| | | | | | | | | | + 1.0%, DrawHUD(R3Scene*), game
| | + 6.4%, DefaultScene(), game
| | | + 6.4%, R3Scene::R3Scene(), game
| | | | + 6.2%, LoadTexture(R3Scene*, char const*), game
| | | | | + 6.2%, 0x10006ccc0 [596.9KB], game
| | | | | | + 6.0%, SOIL_load_image, game
| | | | | | | + 6.0%, stbi_load, game
| | | | | | | | + 5.1%, stbi_bmp_load_from_file, game
| | | | | | | | | + 5.1%, bmp_load, game
| | | | | | | | | | + 4.8%, get8, game
| | | | | | | | | | | + 4.6%, fgetc, libSystem.B.dylib
| | | | | | | | | | | | + 2.3%, flockfile, libSystem.B.dylib
| | | | | | | | | | | | | + 1.9%, pthread_mutex_lock, libSystem.B.dylib
| | | | | | | | | | | | + 1.5%, pthread_mutex_unlock, libSystem.B.dylib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment