Skip to content

Instantly share code, notes, and snippets.

@hlian
Created May 10, 2011 06:41
Show Gist options
  • Save hlian/964009 to your computer and use it in GitHub Desktop.
Save hlian/964009 to your computer and use it in GitHub Desktop.
playerless: post-hao
# Report 7 - Session 5 - Time Profile of game
SharkProfileViewer
# Generated from the visible portion of the outline view
+ 97.9%, start, game
| + 97.9%, main, game
| | + 86.5%, GLUTMainLoop(), game
| | | + 86.5%, glutMainLoop, GLUT
| | | | + 86.5%, -[GLUTApplication run], GLUT
| | | | | + 86.3%, __glutProcessWorkEvents, GLUT
| | | | | | + 86.3%, processWindowWorkList, GLUT
| | | | | | | + 86.3%, -[GLUTView handleWorkEvent:], GLUT
| | | | | | | | + 85.4%, -[GLUTView drawRect:], GLUT
| | | | | | | | | + 85.4%, GLUTRedraw(), game
| | | | | | | | | | + 82.9%, DrawEntities(R3Scene*), game
| | | | | | | | | | | + 55.6%, RenderAirplanes(R3Scene*, double, double, bool), game
| | | | | | | | | | | | + 43.5%, OcclusionCull(R3Scene*, Airplane*), game
| | | | | | | | | | | | | + 42.7%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | + 42.6%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | + 40.1%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | + 35.7%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | | | | | | + 11.2%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 1.7%, R3Vector::Dot(R3Vector const&) const, game
| | | | | | | | | | | | | | | | | | + 1.6%, operator+(R3Point const&, R3Vector const&), game
| | | | | | | | | | | | | | | | | | + 1.3%, R3Vector::Normalize(), game
| | | | | | | | | | | | | | | | | | 1.1%, R3Vector::R3Vector(R3Vector const&), game
| | | | | | | | | | | | | | | | | + 7.0%, R3Plane::R3Plane(R3Point const&, R3Point const&, R3Point const&), game
| | | | | | | | | | | | | | | | | | + 2.5%, R3Vector::Normalize(), game
| | | | | | | | | | | | | | | | | | | 1.1%, R3Vector::Length() const, game
| | | | | | | | | | | | | | | | | | + 1.4%, operator-(R3Point const&, R3Point const&), game
| | | | | | | | | | | | | | | | | + 4.3%, R3Vector::Normalize(), game
| | | | | | | | | | | | | | | | | | 1.6%, R3Vector::Length() const, game
| | | | | | | | | | | | | | | | | + 2.4%, operator-(R3Point const&, R3Point const&), game
| | | | | | | | | | | | | | | | | + 1.8%, R3Intersection::operator=(R3Intersection const&), game
| | | | | | | | | | | | | | | | | + 1.7%, R3Ray::R3Ray(R3Ray const&), game
| | | | | | | | | | | | | | | | | | + 1.5%, R3Line::R3Line(R3Line const&), game
| | | | | | | | | | | | | | | | | 1.4%, R3Vector::Cross(R3Vector const&), game
| | | | | | | | | | | | | | | | | + 1.0%, R3Vector::Dot(R3Vector const&) const, game
| | | | | | | | | | | | | | | | + 2.0%, R3Intersection::operator=(R3Intersection const&), game
| | | | | | | | | | | | | | | | + 1.3%, R3Ray::R3Ray(R3Ray const&), game
| | | | | | | | | | | | | | | | | + 1.2%, R3Line::R3Line(R3Line const&), game
| | | | | | | | | | | | + 8.0%, R3Mesh::Draw() const, game
| | | | | | | | | | | | | + 3.9%, glBegin_Exec, GLEngine
| | | | | | | | | | | | | | + 3.9%, gleDoDrawDispatchCore, GLEngine
| | | | | | | | | | | | | | | + 3.3%, gldUpdateDispatch, GeForceGLDriver
| | | | | | | | | | | | | | | | + 2.8%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | | | | | | | + 2.5%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | | + 1.2%, glPopAttrib_Exec, GLEngine
| | | | | | | | | | | | + 1.1%, glPushAttrib_Exec, GLEngine
| | | | | | | | | | | | | + 1.0%, gleAddAttribElem, GLEngine
| | | | | | | | | | | + 20.7%, UpdateAirplanes(R3Scene*, double, double), game
| | | | | | | | | | | | + 11.3%, UpdatePosition(R3Scene*, double, double, Airplane*), game
| | | | | | | | | | | | | + 11.3%, ComputeCollision(R3Scene*, double, double, Airplane*), game
| | | | | | | | | | | | | | + 6.2%, IntersectWithAirplanes(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | + 6.1%, IntersectWithAirplanes(R3Scene*, R3Ray, AirplaneType), game
| | | | | | | | | | | | | | | | + 3.9%, ComputeIntersection(R3Scene*, Airplane*, R3Ray), game
| | | | | | | | | | | | | | | | | + 1.1%, R3Box::DiagonalLength() const, game
| | | | | | | | | | | | | | | | | | + 1.0%, R3Distance(R3Point const&, R3Point const&), game
| | | | | | | | | | | | | | | | | + 1.0%, R3Intersection::R3Intersection(R3Intersection const&), game
| | | | | | | | | | | | | | | | + 1.1%, R3Intersection::operator=(R3Intersection const&), game
| | | | | | | | | | | | | | + 5.1%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | + 5.1%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | | + 4.8%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | | + 4.4%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 1.3%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | + 7.8%, UpdateAI(R3Scene*, double), game
| | | | | | | | | | | | | + 7.8%, UpdateAI(R3Scene*, Airplane*, double), game
| | | | | | | | | | | | | | + 5.2%, ObstacleAvoidance(R3Scene*, Airplane*, R3Vector*), game
| | | | | | | | | | | | | | | + 5.1%, ComputeIntersection(R3Scene*, R3Ray), game
| | | | | | | | | | | | | | | | + 5.1%, Terrain::IntersectWithTerrain(Terrain*, R3Ray&), game
| | | | | | | | | | | | | | | | | + 4.9%, ComputeIntersection(R3Mesh*, R3Ray), game
| | | | | | | | | | | | | | | | | | + 4.3%, ComputeIntersection(R3MeshFace*, R3Ray), game
| | | | | | | | | | | | | | | | | | | + 1.3%, ComputeIntersection(R3Plane*, R3Ray), game
| | | | | | | | | | | | | | + 1.5%, Flee(R3Scene*, Airplane*), game
| | | | | | | | | | | | + 1.5%, 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
| | | | | | | | | | | + 5.7%, RenderParticles(R3Scene*, double, double), game
| | | | | | | | | | | | + 4.1%, RenderFire(R3Scene*, R3Particle*), game
| | | | | | | | | | | | | + 2.8%, glBegin_Exec, GLEngine
| | | | | | | | | | | | | | + 2.7%, gleDoDrawDispatchCore, GLEngine
| | | | | | | | | | | | | | | + 2.0%, gldUpdateDispatch, GeForceGLDriver
| | | | | | | | | | | | | | | | + 1.6%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | | | | | | | + 1.5%, glrCompExecuteKernel, GeForceGLDriver
| | | | | | | | | | | | + 1.3%, void std::sort<__gnu_cxx::__normal_iterator<R3Particle**, std::vector<R3Particle*, std::allocator<R3Particle*> > >, bool (*)(R3Particle*, R3Particle*)>(__gnu_cxx::__normal_iterator<R3Particle**, std::vector<R3Particle*, std::allocator<R3Particle*> > >, __gnu_cxx::__normal_iterator<R3Particle**, std::vector<R3Particle*, std::allocator<R3Particle*> > >, bool (*)(R3Particle*, R3Particle*)), game
| | | | | | | | | | | | | + 1.1%, void std::__introsort_loop<__gnu_cxx::__normal_iterator<R3Particle**, std::vector<R3Particle*, std::allocator<R3Particle*> > >, long, bool (*)(R3Particle*, R3Particle*)>(__gnu_cxx::__normal_iterator<R3Particle**, std::vector<R3Particle*, std::allocator<R3Particle*> > >, __gnu_cxx::__normal_iterator<R3Particle**, std::vector<R3Particle*, std::allocator<R3Particle*> > >, long, bool (*)(R3Particle*, R3Particle*)), game
| | | | | | | | | | + 2.3%, DrawScene(R3Scene*), game
| | | | | | | | | | | + 2.3%, Terrain::Draw(R3Scene*), game
| | | | | | | | | | | | + 2.2%, R3Mesh::Draw() const, game
| | + 11.2%, DefaultScene(), game
| | | + 11.0%, R3Scene::R3Scene(), game
| | | | + 10.7%, LoadTexture(R3Scene*, char const*), game
| | | | | + 10.7%, SOIL_load_OGL_texture, game
| | | | | | + 10.2%, SOIL_load_image, game
| | | | | | | + 10.2%, stbi_load, game
| | | | | | | | + 8.5%, stbi_bmp_load_from_file, game
| | | | | | | | | + 8.5%, bmp_load, game
| | | | | | | | | | + 8.1%, get8, game
| | | | | | | | | | | + 7.7%, fgetc, libSystem.B.dylib
| | | | | | | | | | | | + 3.0%, flockfile, libSystem.B.dylib
| | | | | | | | | | | | | + 2.5%, pthread_mutex_lock, libSystem.B.dylib
| | | | | | | | | | | | | | 1.0%, __spin_lock, libSystem.B.dylib
| | | | | | | | | | | | + 2.7%, pthread_mutex_unlock, libSystem.B.dylib
| | | | | | | | | | | | | 1.2%, __spin_lock, libSystem.B.dylib
| | | | | | | | + 1.7%, stbi_png_load_from_file, game
| | | | | | | | | + 1.7%, do_png, game
| | | | | | | | | | + 1.7%, parse_png_file, game
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment