Skip to content

Instantly share code, notes, and snippets.

@hlian
Created May 10, 2011 05:56
Show Gist options
  • Save hlian/963973 to your computer and use it in GitHub Desktop.
Save hlian/963973 to your computer and use it in GitHub Desktop.
regular play
# Report 3 - Session 3 - Time Profile of game
SharkProfileViewer
# Generated from the visible portion of the outline view
+ 96.9%, start, game
| + 96.9%, main, game
| | + 88.0%, GLUTMainLoop(), game
| | | + 88.0%, glutMainLoop, GLUT
| | | | + 88.0%, -[GLUTApplication run], GLUT
| | | | | + 87.1%, __glutProcessWorkEvents, GLUT
| | | | | | + 87.1%, processWindowWorkList, GLUT
| | | | | | | + 87.1%, -[GLUTView handleWorkEvent:], GLUT
| | | | | | | | + 86.2%, -[GLUTView drawRect:], GLUT
| | | | | | | | | + 86.1%, GLUTRedraw(), game
| | | | | | | | | | + 53.1%, DrawEntities(R3Scene*), game
| | | | | | | | | | | + 33.0%, UpdateAirplanes(R3Scene*, double, double), game
| | | | | | | | | | | | + 24.4%, UpdatePosition(R3Scene*, double, double, Airplane*), game
| | | | | | | | | | | | | + 24.4%, ComputeCollision(R3Scene*, double, double, Airplane*), game
| | | | | | | | | | | | | | + 18.4%, IntersectWithAirplanes(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | + 18.4%, IntersectWithAirplanes(R3Scene*, R3Ray, AirplaneType), game
| | | | | | | | | | | | | | | | + 17.8%, ComputeIntersection(R3Scene*, Airplane*, R3Ray), game
| | | | | | | | | | | | | | | | | + 8.1%, ComputeIntersection(R3Box*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 4.8%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | | | | | | | | + 1.0%, R3Vector::Dot(R3Vector const&) const, game
| | | | | | | | | | | | | | | | | + 5.5%, Airplane::Transform(), game
| | | | | | | | | | | | | | | | | | + 2.8%, R3Matrix::Rotate(R3Vector const&, double), game
| | | | | | | | | | | | | | | | | | | + 1.9%, R3Matrix::operator*=(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | + 1.9%, R3Matrix::Multiply(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | | | + 1.6%, operator*(R3Matrix const&, R3Matrix const&), game
| | | | | | | | | | | | | | | | | + 2.0%, R3Ray::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | + 2.0%, R3Line::InverseTransform(R3Matrix const&), game
| | | | | | | | | | | | | | | | | | | + 1.2%, R3Matrix::Inverse() const, game
| | | | | | | | | | | | | | | | | | | | + 1.1%, R3Matrix::Invert(), game
| | | | | | | | | | | | | | + 5.9%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | + 5.9%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | | + 5.6%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | | + 4.9%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 1.6%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | + 6.8%, UpdateAI(R3Scene*, double), game
| | | | | | | | | | | | | + 6.8%, UpdateAI(R3Scene*, Airplane*, double), game
| | | | | | | | | | | | | | + 5.6%, ObstacleAvoidance(R3Scene*, Airplane*, R3Vector*), game
| | | | | | | | | | | | | | | + 5.5%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | | + 5.5%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | | | + 5.2%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 4.5%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | | | | | | | | + 1.4%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | + 1.6%, Airplane::Tick(R3Scene*, double), game
| | | | | | | | | | | | | + 1.4%, Airplane::ShootBullet(R3Scene*, double), game
| | | | | | | | | | | | | | + 1.4%, GenerateBullet(R3Scene*, R3Ray, Airplane*, BulletType, AirplaneType), game
| | | | | | | | | | | | | | | + 1.4%, ComputeCollision(R3Scene*, Bullet*), game
| | | | | | | | | | | | | | | | + 1.1%, IntersectWithAirplanes(R3Scene*, R3Ray, AirplaneType), game
| | | | | | | | | | | | | | | | | + 1.0%, ComputeIntersection(R3Scene*, Airplane*, R3Ray), game
| | | | | | | | | | | + 16.8%, RenderAirplanes(R3Scene*, double, double, bool), game
| | | | | | | | | | | | + 9.9%, R3Mesh::Draw() const, game
| | | | | | | | | | | | | 2.6%, R3Point::operator[](int) const, game
| | | | | | | | | | | | | 1.2%, std::vector<R3MeshVertex*, std::allocator<R3MeshVertex*> >::size() const, game
| | | | | | | | | | | | + 2.8%, OcclusionCull(R3Scene*, Airplane*), game
| | | | | | | | | | | | | + 2.7%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | + 2.7%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | + 2.6%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | + 2.3%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | + 1.8%, FrustrumCull(R3Scene*, Airplane*), game
| | | | | | | | | | | | 1.4%, 0x10006eaa0 [153.7KB], game
| | | | | | | | | | | + 1.9%, RenderParticles(R3Scene*, double, double), game
| | | | | | | | | | | | + 1.2%, RenderFire(R3Scene*, R3Particle*), game
| | | | | | | | | | + 23.9%, DrawScene(R3Scene*), game
| | | | | | | | | | | + 23.9%, Terrain::Draw(R3Scene*), game
| | | | | | | | | | | | + 19.8%, R3Mesh::Draw() const, game
| | | | | | | | | | | | | 4.7%, R3Point::operator[](int) const, game
| | | | | | | | | | | | | 2.3%, std::vector<R3MeshVertex*, std::allocator<R3MeshVertex*> >::size() const, game
| | | | | | | | | | | | | 2.1%, glVertex3d, libGL.dylib
| | | | | | | | | | | | | 1.3%, R3Vector::operator[](int) const, game
| | | | | | | | | | | | | 1.2%, 0x11877b1c0 [146B], Unknown Library
| | | | | | | | | | | | 2.7%, 0x10006eaa0 [153.7KB], game
| | | | | | | | | | + 7.0%, DrawHUD(R3Scene*), game
| | | | | | | | | | | + 2.6%, DrawWaveInfo(R3Scene*), game
| | | | | | | | | | | | + 2.5%, WriteString(float, float, void*, char const*), game
| | | | | | | | | | | | | + 2.4%, glutBitmapCharacter, GLUT
| | | | | | | | | | | | | | + 2.3%, glBitmap_Exec, GLEngine
| | | | | | | | | | | | | | | + 1.7%, gleDoSelectiveDispatchCore, GLEngine
| | | | | | | | | | | | | | | | + 1.6%, gldUpdateDispatch, GeForceGLDriver
| | | | | | | | | | | | | | | | | + 1.5%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | | | | | | | | + 1.4%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | + 2.4%, PrintMessages(R3Scene*), game
| | | | | | | | | | | | + 2.4%, WriteString(float, float, void*, char const*), game
| | | | | | | | | | | | | + 2.4%, glutBitmapCharacter, GLUT
| | | | | | | | | | | | | | + 2.2%, glBitmap_Exec, GLEngine
| | | | | | | | | | | | | | | + 1.7%, gleDoSelectiveDispatchCore, GLEngine
| | | | | | | | | | | | | | | | + 1.7%, gldUpdateDispatch, GeForceGLDriver
| | | | | | | | | | | | | | | | | + 1.5%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | | | | | | | | + 1.4%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | + 1.0%, DrawHPBar(R3Scene*), game
| | + 8.9%, DefaultScene(), game
| | | + 8.7%, R3Scene::R3Scene(), game
| | | | + 8.5%, LoadTexture(R3Scene*, char const*), game
| | | | | + 8.5%, 0x10006eaa0 [153.7KB], game
| | | | | | + 8.2%, SOIL_load_image, game
| | | | | | | + 8.2%, stbi_load, game
| | | | | | | | + 6.9%, stbi_bmp_load_from_file, game
| | | | | | | | | + 6.9%, bmp_load, game
| | | | | | | | | | + 6.5%, get8, game
| | | | | | | | | | | + 6.3%, fgetc, libSystem.B.dylib
| | | | | | | | | | | | + 3.2%, flockfile, libSystem.B.dylib
| | | | | | | | | | | | | + 2.7%, pthread_mutex_lock, libSystem.B.dylib
| | | | | | | | | | | | + 2.2%, pthread_mutex_unlock, libSystem.B.dylib
| | | | | | | | + 1.3%, stbi_png_load_from_file, game
| | | | | | | | | + 1.3%, do_png, game
| | | | | | | | | | + 1.2%, parse_png_file, game
| | | | | | | | + 1.1%, IONVGLContext::submit_command_buffer(unsigned int, sIOGLGetCommandBuffer*), GeForce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment