Skip to content

Instantly share code, notes, and snippets.

@hlian
Created May 10, 2011 06:01
Show Gist options
  • Save hlian/963981 to your computer and use it in GitHub Desktop.
Save hlian/963981 to your computer and use it in GitHub Desktop.
playerless
# Report 5 - Session 4 - Time Profile of game
SharkProfileViewer
# Generated from the visible portion of the outline view
+ 98.5%, start, game
| + 98.5%, main, game
| | + 90.0%, GLUTMainLoop(), game
| | | + 90.0%, glutMainLoop, GLUT
| | | | + 90.0%, -[GLUTApplication run], GLUT
| | | | | + 89.8%, __glutProcessWorkEvents, GLUT
| | | | | | + 89.8%, processWindowWorkList, GLUT
| | | | | | | + 89.8%, -[GLUTView handleWorkEvent:], GLUT
| | | | | | | | + 88.5%, -[GLUTView drawRect:], GLUT
| | | | | | | | | + 88.5%, GLUTRedraw(), game
| | | | | | | | | | + 87.1%, DrawEntities(R3Scene*), game
| | | | | | | | | | | + 53.7%, UpdateAirplanes(R3Scene*, double, double), game
| | | | | | | | | | | | + 38.1%, UpdatePosition(R3Scene*, double, double, Airplane*), game
| | | | | | | | | | | | | + 38.1%, ComputeCollision(R3Scene*, double, double, Airplane*), game
| | | | | | | | | | | | | | + 35.6%, IntersectWithAirplanes(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | + 35.5%, IntersectWithAirplanes(R3Scene*, R3Ray, AirplaneType), game
| | | | | | | | | | | | | | | | + 34.2%, ComputeIntersection(R3Scene*, Airplane*, R3Ray), game
| | | | | | | | | | | | | | | | | + 15.9%, ComputeIntersection(R3Box*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 9.2%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | | | | | | | | + 1.8%, R3Vector::Dot(R3Vector const&) const, game
| | | | | | | | | | | | | | | | | | | + 1.1%, R3Vector::Normalize(), game
| | | | | | | | | | | | | | | | | | | + 1.0%, operator+(R3Point const&, R3Vector const&), game
| | | | | | | | | | | | | | | | | | + 1.7%, R3Intersection::operator=(R3Intersection const&), game
| | | | | | | | | | | | | | | | | | + 1.4%, R3Ray::R3Ray(R3Ray const&), game
| | | | | | | | | | | | | | | | | | | + 1.3%, R3Line::R3Line(R3Line const&), game
| | | | | | | | | | | | | | | | | | + 1.1%, withinRect(R3Point, R3Box*, int), game
| | | | | | | | | | | | | | | | | + 10.3%, Airplane::Transform(), game
| | | | | | | | | | | | | | | | | | + 5.2%, R3Matrix::Rotate(R3Vector const&, double), game
| | | | | | | | | | | | | | | | | | | + 3.6%, R3Matrix::operator*=(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | + 3.5%, R3Matrix::Multiply(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | | + 2.9%, operator*(R3Matrix const&, R3Matrix const&), game
| | | | | | | | | | | | | | | | | | + 1.6%, R3Vector::Normalize(), game
| | | | | | | | | | | | | | | | | | + 1.0%, R3Vector::Project(R3Plane const&), game
| | | | | | | | | | | | | | | | | + 3.9%, R3Ray::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | + 3.9%, R3Line::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | + 2.5%, R3Matrix::Inverse() const, game
| | | | | | | | | | | | | | | | | | | | + 2.0%, R3Matrix::Invert(), game
| | | | | | | | | | | | | | | | | | | | | 1.2%, R3MatrixDet3(double, double, double, double, double, double, double, double, double), game
| | | | | | | | | | | | | | | | | | | + 1.4%, R3Line::Transform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | + 1.4%, R3Ray::Transform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | + 1.4%, R3Line::Transform(R3Matrix const&), game
| | | | | | | | | | | | | | + 2.5%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | + 2.5%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | | + 2.3%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | | + 2.0%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | + 11.6%, Airplane::Tick(R3Scene*, double), game
| | | | | | | | | | | | | + 11.5%, Airplane::ShootBullet(R3Scene*, double), game
| | | | | | | | | | | | | | + 11.5%, GenerateBullet(R3Scene*, R3Ray, Airplane*, BulletType, AirplaneType), game
| | | | | | | | | | | | | | | + 11.5%, ComputeCollision(R3Scene*, Bullet*), game
| | | | | | | | | | | | | | | | + 10.9%, IntersectWithAirplanes(R3Scene*, R3Ray, AirplaneType), game
| | | | | | | | | | | | | | | | | + 10.6%, ComputeIntersection(R3Scene*, Airplane*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 4.8%, ComputeIntersection(R3Box*, R3Ray), game
| | | | | | | | | | | | | | | | | | | + 2.8%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 3.2%, Airplane::Transform(), game
| | | | | | | | | | | | | | | | | | | + 1.6%, R3Matrix::Rotate(R3Vector const&, double), game
| | | | | | | | | | | | | | | | | | | | + 1.1%, R3Matrix::operator*=(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | | + 1.1%, R3Matrix::Multiply(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | + 1.2%, R3Ray::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | + 1.2%, R3Line::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | + 4.0%, UpdateAI(R3Scene*, double), game
| | | | | | | | | | | | | + 4.0%, UpdateAI(R3Scene*, Airplane*, double), game
| | | | | | | | | | | | | | + 2.5%, ObstacleAvoidance(R3Scene*, Airplane*, R3Vector*), game
| | | | | | | | | | | | | | | + 2.5%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | | + 2.5%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | | | + 2.4%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 2.1%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | + 29.8%, RenderAirplanes(R3Scene*, double, double, bool), game
| | | | | | | | | | | | + 23.4%, OcclusionCull(R3Scene*, Airplane*), game
| | | | | | | | | | | | | + 23.0%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | + 22.9%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | + 21.5%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | + 19.1%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | | | | | | + 6.0%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | | | | | | + 3.7%, R3Plane::R3Plane(R3Point const&, R3Point const&, R3Point const&), game
| | | | | | | | | | | | | | | | | | + 1.3%, R3Vector::Normalize(), game
| | | | | | | | | | | | | | | | | + 2.3%, R3Vector::Normalize(), game
| | | | | | | | | | | | | | | | | + 1.2%, operator-(R3Point const&, R3Point const&), game
| | | | | | | | | | | | | | | | | + 1.0%, R3Intersection::operator=(R3Intersection const&), game
| | | | | | | | | | | | | | | | + 1.0%, R3Intersection::operator=(R3Intersection const&), game
| | | | | | | | | | | | + 3.9%, R3Mesh::Draw() const, game
| | | | | | | | | | | | | + 2.2%, glBegin_Exec, GLEngine
| | | | | | | | | | | | | | + 2.2%, gleDoDrawDispatchCore, GLEngine
| | | | | | | | | | | | | | | + 1.8%, gldUpdateDispatch, GeForceGLDriver
| | | | | | | | | | | | | | | | + 1.5%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | | | | | | | + 1.3%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | + 3.1%, RenderParticles(R3Scene*, double, double), game
| | | | | | | | | | | | + 2.0%, RenderFire(R3Scene*, R3Particle*), game
| | | | | | | | | | | | | + 1.4%, glBegin_Exec, GLEngine
| | | | | | | | | | | | | | + 1.4%, gleDoDrawDispatchCore, GLEngine
| | | | | | | | | | | | | | | + 1.1%, gldUpdateDispatch, GeForceGLDriver
| | | | | | | | | | + 1.3%, DrawScene(R3Scene*), game
| | | | | | | | | | | + 1.3%, Terrain::Draw(R3Scene*), game
| | | | | | | | | | | | + 1.1%, R3Mesh::Draw() const, game
| | | | | | | | | + 1.2%, -[GLUTWindow orderWindow:relativeTo:], GLUT
| | | | | | | | | | | | | | | | | | | + 1.2%, -[GLUTView drawRect:], GLUT
| | | | | | | | | | | | | | | | | | | | - 1.2%, GLUTRedraw(), game
| | + 8.5%, DefaultScene(), game
| | | + 8.3%, R3Scene::R3Scene(), game
| | | | + 8.1%, LoadTexture(R3Scene*, char const*), game
| | | | | + 8.0%, 0x10006eaa0 [153.7KB], game
| | | | | | + 7.8%, SOIL_load_image, game
| | | | | | | + 7.8%, stbi_load, game
| | | | | | | | + 6.6%, stbi_bmp_load_from_file, game
| | | | | | | | | + 6.6%, bmp_load, game
| | | | | | | | | | + 6.1%, get8, game
| | | | | | | | | | | + 6.0%, fgetc, libSystem.B.dylib
| | | | | | | | | | | | + 2.5%, flockfile, libSystem.B.dylib
| | | | | | | | | | | | | + 2.1%, pthread_mutex_lock, libSystem.B.dylib
| | | | | | | | | | | | + 2.1%, pthread_mutex_unlock, libSystem.B.dylib
| | | | | | | | + 1.2%, stbi_png_load_from_file, game
| | | | | | | | | + 1.2%, do_png, game
| | | | | | | | | | + 1.1%, parse_png_file, game
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment