User:Bjordan/Physics.activity/Slimming

From OLPC
Jump to navigation Jump to search

While running an elements python file

/strace of graphy.py /strace-files of graphy.py

[olpc@xo-70-EC-9C Physics.activity]$ lsof | grep Activi
lsof: WARNING: can't stat() jffs2 file system /security/.private
      Output information may be incomplete.
Journal   1724      olpc    1w      REG       31,0        0  66703 /home/olpc/.sugar/default/logs/org.laptop.JournalActivity-1.log
Journal   1724      olpc    2w      REG       31,0        0  66703 /home/olpc/.sugar/default/logs/org.laptop.JournalActivity-1.log
bash      1756      olpc  cwd       DIR       31,0        0  30033 /home/olpc/Activities/Physics.activity
bash      1783      olpc  cwd       DIR       31,0        0  43713 /home/olpc/Activities/Physics.activity/elements/elements
python    1983      olpc  cwd       DIR       31,0        0  43713 /home/olpc/Activities/Physics.activity/elements/elements
python    1983      olpc  mem       REG       31,0  1401064  43833 /home/olpc/Activities/Physics.activity/elements/elements/elements/box2d/box2d_linux32/_Box2D2.so
lsof      1992      olpc  cwd       DIR       31,0        0  30033 /home/olpc/Activities/Physics.activity
grep      1993      olpc  cwd       DIR       31,0        0  30033 /home/olpc/Activities/Physics.activity
lsof      1994      olpc  cwd       DIR       31,0        0  30033 /home/olpc/Activities/Physics.activity

All files, bolded are needed for running, italicized are needed for devel, gray are for documentation.

[olpc@xo-70-EC-9C Physics.activity]$ ls -R *
1.physics  activity.py     Box2D2.pyc  Box2D.pyc     camera.py    elements.py   menu.py     test.py         tools.py
2.physics  add_objects.py  _Box2D2.so  _Box2D.so     drawing.py   elements.pyc  physics.py  tools_poly.py
3.physics  Box2D2.py       Box2D.py    callbacks.py  drawing.pyc  locals.py     pymunx.py   tools_poly.pyc

activity:
activity.info  activity-physics.svg

box2d:
box2d_linux32  box2d_linux32ppc  box2d_linux64  box2d_macosx  box2d_win  __init__.py  __init__.pyc

box2d/box2d_linux32:
Box2D2.py  _Box2D2.so  __init__.py

box2d/box2d_linux32ppc:
Box2D2.py  _Box2D2.so  __init__.py

box2d/box2d_linux64:
Box2D2.py  _Box2D2.so  __init__.py

box2d/box2d_macosx:
Box2D2.py  Box2D2.pyc  _Box2D2.so  __init__.py  __init__.pyc

box2d/box2d_win:
Box2D2.py  _Box2D2.pyd  __init__.py

elements:
box2d       Box2D.i        building      buildscripts  credits        elements  license  readme
_Box2D2.so  box2d_testbed  build_osx.py  contrib       documentation  images    misc

elements/box2d:
build_osx.py

elements/box2d_testbed:
convert      test_Biped.py   test_CCDTest.py              test_empty.py    test_ShapeEditing.py   test_Web.py
pygame       test_bridge.py  test_ContactCallbackTest.py  test_main.py     test_TheoJansen.py
settings.py  test_Car.py     test_Dominos.py              test_Pulleys.py  test_VerticalStack.py

elements/box2d_testbed/convert:
convert.py  license.txt

elements/box2d_testbed/pygame:
data                test_CCDTest.py              test_ElasticBody.py      test_Pyramid.py             test_VerticalStack.py
demos.py            test_Chain.py                test_empty.py            test_SensorTest.py          test_Web.py
pgu                 test_CollisionFiltering.py   test_Gears.py            test_ShapeEditing.py        todo_test_BroadPhaseTest.py
settings.py         test_CollisionProcessing.py  test_main.py             test_SliderCrank.py         todo.txt
test_ApplyForce.py  test_CompoundShapes.py       test_MotorsAndLimits.py  test_TheoJansen.py
test_Biped.py       test_ContactCallbackTest.py  test_PolyCollision.py    test_TimeOfImpact.py
test_Bridge.py      test_DistanceTest.py         test_PolyShapes.py       test_VaryingFriction.py
test_Car.py         test_Dominos.py              test_Pulleys.py          test_VaryingRestitution.py

elements/box2d_testbed/pygame/data:
themes

elements/box2d_testbed/pygame/data/themes:
default  gray  tools

elements/box2d_testbed/pygame/data/themes/default:
box.down.png              dialog.close.hover.tga   listitem.down.tga     rdot.normal.png                tool.down.tga
box.hover.png             dialog.close.normal.tga  list.item.hover.png   right.png                      tool.hover.tga
box.normal.png            dialog.png               listitem.hover.tga    sbox.normal.png                tool.normal.tga
box.xcf                   dot.down.png             list.item.normal.png  scroller.slide.bar.hover.tga   up.png
button.down.tga           dot.hover.png            listitem.normal.tga   scroller.slide.bar.normal.tga  vbox.normal.png
button.hover.tga          dot.normal.png           list.png              scroller.slide.h.tga           vdot.down.png
button.normal.tga         dot.xcf                  menu.down.tga         scroller.slide.v.tga           vdot.hover.png
checkbox.off.hover.tga    down.png                 menu.hover.tga        select.arrow.down.tga          vdot.normal.png
checkbox.off.normal.tga   filebrowser.folder.png   menu.normal.tga       select.arrow.hover.tga         Vera.ttf
checkbox.on.hover.tga     generate.py              notes.txt             select.arrow.normal.tga        vsbox.normal.png
checkbox.on.normal.tga    hslider.bar.hover.tga    out.tga               select.arrow.png               vslider.bar.hover.tga
check.png                 hslider.bar.normal.tga   progressbar.bar.tga   select.option.hover.png        vslider.bar.normal.tga
config.txt                hslider.left.tga         progressbar.tga       select.option.normal.png       vslider.down.tga
console.input.focus.png   hslider.right.tga        radio.off.hover.tga   select.options.png             vslider.tga
console.input.normal.png  hslider.tga              radio.off.normal.tga  select.selected.down.tga       vslider.up.tga
console.png               idot.normal.png          radio.on.hover.tga    select.selected.hover.tga      x.png
desktop.png               input.focus.png          radio.on.normal.tga   select.selected.normal.tga
desktop.xcf               input.normal.png         radio.png             slider.bar.hover.tga
dialog.bar.png            left.png                 rdot.down.png         slider.bar.normal.tga
dialog.close.down.tga     list.item.down.png       rdot.hover.png        slider.tga

elements/box2d_testbed/pygame/data/themes/gray:
box.down.png             console.input.focus.png   input.focus.png         radio.off.down.png        select.selected.normal.png
box.normal.png           console.input.normal.png  input.normal.png        radio.off.normal.png      slider.bar.normal.png
button.down.png          console.png               list.item.normal.png    radio.on.down.png         slider.png
button.normal.png        desktop.png               list.png                radio.on.normal.png       tool.down.png
checkbox.off.down.png    dialog.bar.png            menu.down.png           select.arrow.down.png     tool.normal.png
checkbox.off.normal.png  dialog.close.down.png     menu.hover.png          select.arrow.normal.png   Vera.ttf
checkbox.on.down.png     dialog.close.normal.png   menu.normal.png         select.arrow.png
checkbox.on.normal.png   dialog.png                menu.option.hover.png   select.option.normal.png
config.txt               filebrowser.folder.png    menu.option.normal.png  select.options.png

elements/box2d_testbed/pygame/data/themes/tools:
config.txt        icons48.code.tga  icons48.eraser.tga  icons48.line.tga   icons48.select.tga
icons48.bkgr.tga  icons48.draw.tga  icons48.fill.tga    icons48.pixel.tga  icons48.tile.tga

elements/box2d_testbed/pygame/pgu:
gui  __init__.py  pgu-unused.7z

elements/box2d_testbed/pygame/pgu/gui:
app.py    button.py     deprecated.py  form.py      input.py   menus.py   slider.py   table.py
area.py   const.py      dialog.py      group.py     keysym.py  misc.py    style.py    theme.py
basic.py  container.py  document.py    __init__.py  layout.py  select.py  surface.py  widget.py

elements/buildscripts:
build_box2d.py  build_linux.py  build_osx.py  build_win.py  __init__.py  windows

elements/buildscripts/windows:
Box2D.i  Makefile.patch  Makefile.python  readme.txt  setup.py

elements/contrib:
josh  ken  menno

elements/contrib/josh:
physics-3.xo  Physics4.activity  physics-4.xo

elements/contrib/josh/Physics4.activity:
activity  activity.py  Box2D.py  Box2D.pyc  _Box2D.so  elements.py  olpcgames  physics.py  scenes

elements/contrib/josh/Physics4.activity/activity:
activity.info  activity-physics.svg

elements/contrib/josh/Physics4.activity/olpcgames:
activity.py     camera.py  canvas.pyc  data          gtkEvent.py  __init__.pyc  pangofont.py    svgsprite.py  video.py
_cairoimage.py  canvas.py  copying     eventwrap.py  __init__.py  mesh.py       pausescreen.py  util.py

elements/contrib/josh/Physics4.activity/olpcgames/data:
__init__.py  sleeping_svg.py

elements/contrib/josh/Physics4.activity/scenes:
default.py  __init__.py  jumble.py  mixer.py

elements/contrib/ken:
game_test.py  kgame_joints.py  kgame_main.py  kgame_main.pyc  kgame_utils.py  testbed-template.txt  world.txt

elements/contrib/menno:
rendering2.py

elements/documentation:
add.html  box2d_apiref_html.zip  dynamic        index.css   js.js           manual.html
box2d     callbacks.html         elements.html  index.html  logo_small.png  ref.html

elements/documentation/box2d:
add.py                                    functions_0x6a.htm                             structb2_contact_point.htm
annotated.htm                             functions_0x6b.htm                             structb2_contact_point-members.htm
b2_collision_8h.htm                       functions_0x6c.htm                             structb2_distance_joint_def.htm
b2_settings_8h.htm                        functions_0x6d.htm                             structb2_distance_joint_def-members.htm
classb2_body.htm                          functions_0x6e.htm                             structb2_distance_joint_def.png
classb2_body-members.htm                  functions_0x6f.htm                             structb2_gear_joint_def.htm
classb2_boundary_listener.htm             functions_0x70.htm                             structb2_gear_joint_def-members.htm
classb2_boundary_listener-members.htm     functions_0x71.htm                             structb2_gear_joint_def.png
classb2_circle_shape.htm                  functions_0x72.htm                             structb2_joint_def.htm
classb2_circle_shape-members.htm          functions_0x73.htm                             structb2_joint_def-members.htm
classb2_circle_shape.png                  functions_0x74.htm                             structb2_joint_def.png
classb2_contact_filter.htm                functions_0x75.htm                             structb2_joint_edge.htm
classb2_contact_filter-members.htm        functions_0x76.htm                             structb2_joint_edge-members.htm
classb2_contact.htm                       functions_0x77.htm                             structb2_manifold.htm
classb2_contact_listener.htm              functions_0x78.htm                             structb2_manifold-members.htm
classb2_contact_listener-members.htm      functions_0x7e.htm                             structb2_manifold_point.htm
classb2_contact-members.htm               functions_eval.htm                             structb2_manifold_point-members.htm
classb2_debug_draw.htm                    functions_func_0x62.htm                        structb2_mass_data.htm
classb2_debug_draw-members.htm            functions_func_0x63.htm                        structb2_mass_data-members.htm
classb2_destruction_listener.htm          functions_func_0x64.htm                        structb2_mat22.htm
classb2_destruction_listener-members.htm  functions_func_0x65.htm                        structb2_mat22-members.htm
classb2_distance_joint.htm                functions_func_0x67.htm                        structb2_mouse_joint_def.htm
classb2_distance_joint-members.htm        functions_func_0x69.htm                        structb2_mouse_joint_def-members.htm
classb2_distance_joint.png                functions_func_0x6c.htm                        structb2_mouse_joint_def.png
classb2_gear_joint.htm                    functions_func_0x6d.htm                        structb2_o_b_b.htm
classb2_gear_joint-members.htm            functions_func_0x6e.htm                        structb2_o_b_b-members.htm
classb2_gear_joint.png                    functions_func_0x6f.htm                        structb2_polygon_def.htm
classb2_joint.htm                         functions_func_0x70.htm                        structb2_polygon_def-members.htm
classb2_joint-members.htm                 functions_func_0x71.htm                        structb2_polygon_def.png
classb2_joint.png                         functions_func_0x72.htm                        structb2_prismatic_joint_def.htm
classb2_mouse_joint.htm                   functions_func_0x73.htm                        structb2_prismatic_joint_def-members.htm
classb2_mouse_joint-members.htm           functions_func_0x74.htm                        structb2_prismatic_joint_def.png
classb2_mouse_joint.png                   functions_func_0x76.htm                        structb2_pulley_joint_def.htm
classb2_polygon_shape.htm                 functions_func_0x77.htm                        structb2_pulley_joint_def-members.htm
classb2_polygon_shape-members.htm         functions_func_0x78.htm                        structb2_pulley_joint_def.png
classb2_polygon_shape.png                 functions_func_0x7e.htm                        structb2_revolute_joint_def.htm
classb2_prismatic_joint.htm               functions_func.htm                             structb2_revolute_joint_def-members.htm
classb2_prismatic_joint-members.htm       functions.htm                                  structb2_revolute_joint_def.png
classb2_prismatic_joint.png               functions_vars.htm                             structb2_segment.htm
classb2_pulley_joint.htm                  globals_func.htm                               structb2_segment-members.htm
classb2_pulley_joint-members.htm          globals.htm                                    structb2_shape_def.htm
classb2_pulley_joint.png                  globals_vars.htm                               structb2_shape_def-members.htm
classb2_revolute_joint.htm                hierarchy.htm                                  structb2_shape_def.png
classb2_revolute_joint-members.htm        #IDXHDR                                        structb2_sweep.htm
classb2_revolute_joint.png                index.hhc                                      structb2_sweep-members.htm
classb2_shape.htm                         index.hhk                                      structb2_vec2.htm
classb2_shape-members.htm                 index.htm                                      structb2_vec2-members.htm
classb2_shape.png                         $OBJINST                                       structb2_version.htm
classb2_world.htm                         #STRINGS                                       structb2_version-members.htm
classb2_world-members.htm                 structb2_a_a_b_b.htm                           structb2_x_form.htm
classes.htm                               structb2_a_a_b_b-members.htm                   structb2_x_form-members.htm
doxygen.css                               structb2_body_def.htm                          #SYSTEM
doxygen.png                               structb2_body_def-members.htm                  tab_b.gif
$FIftiMain                                structb2_circle_def.htm                        tab_l.gif
files.htm                                 structb2_circle_def-members.htm                tab_r.gif
functions_0x62.htm                        structb2_circle_def.png                        tabs.css
functions_0x63.htm                        structb2_color.htm                             #TOPICS
functions_0x64.htm                        structb2_color-members.htm                     unionb2_contact_i_d.htm
functions_0x65.htm                        structb2_contact_edge.htm                      unionb2_contact_i_d-members.htm
functions_0x66.htm                        structb2_contact_edge-members.htm              #URLSTR
functions_0x67.htm                        structb2_contact_i_d_1_1_features.htm          #URLTBL
functions_0x69.htm                        structb2_contact_i_d_1_1_features-members.htm  #WINDOWS

elements/documentation/dynamic:
add_comment.py  add.html  callbacks.html  comment_blueprint.html  comment_blueprint_onlyadd.html  elements.html  manual.html  mkdoc.sh

elements/elements:
alexdemo.py              demo11_cairo.py          demo15_menu.py     demo4_api.py.r84  demo7_poly.py          elements.py  __init__.pyc
beep.wav                 demo12_opengl_pyglet.py  demo4_api.py       demo5_addmany.py  demo8_contact.py       fasty.py     olpcgames
bg.png                   demo13_joints1.py        demo4_api.py.mine  #demo6_walls.py#  demo9_contactsound.py  graphy.py    sandbox.py
demo11a_cairo_images.py  demo14_camera.py         demo4_api.py.r206  demo6_walls.py    elements               __init__.py

elements/elements/elements:
add_objects.py    box2d       callbacks.py   camera.pyc   elements.py   __init__.pyc      locals.py   menu.pyc        tools.py
add_objects.pyc   Box2D2.py   callbacks.pyc  drawing.py   elements.pyc  __init__.py.mine  locals.pyc  tools_poly.py   tools.pyc
add_objects.pyc2  Box2D2.pyc  camera.py      drawing.pyc  __init__.py   __init__.py.r84   menu.py     tools_poly.pyc

elements/elements/elements/box2d:
box2d_linux32  box2d_linux32ppc  box2d_linux64  box2d_macosx  box2d_win  __init__.py  __init__.pyc

elements/elements/elements/box2d/box2d_linux32:
Box2D2.py  Box2D2.pyc  _Box2D2.so  __init__.py  __init__.pyc

elements/elements/elements/box2d/box2d_linux32ppc:
Box2D2.py  _Box2D2.so  __init__.py

elements/elements/elements/box2d/box2d_linux64:
Box2D2.py  _Box2D2.so  __init__.py

elements/elements/elements/box2d/box2d_macosx:
Box2D2.py  Box2D2.pyc  _Box2D2.so  __init__.py  __init__.pyc

elements/elements/elements/box2d/box2d_win:
Box2D2.py  _Box2D2.pyd  __init__.py

elements/elements/olpcgames:

elements/images:
concave1.png               elements_letters_kids.xcf  elements_logo1.png  logo_small.png
elements_letters_kids.tga  elements_logo1_300px.png   elements_try1.xcf

elements/misc:
box2d_testscripts  elements_chipmunk.zip  environ.py  speedtest.zip

elements/misc/box2d_testscripts:
elements  speedtest.py

elements/misc/box2d_testscripts/elements:
drawing.py  elements.py  __init__.py  tools_poly.py

olpcgames:
activity.py     _cairoimage.pyc  canvas.py   data           gtkEvent.py   __init__.pyc  pangofont.py    svgsprite.py  video.py
activity.pyc    camera.py        canvas.pyc  eventwrap.py   gtkEvent.pyc  mesh.py       pangofont.pyc   util.py
_cairoimage.py  camera.pyc       COPYING     eventwrap.pyc  __init__.py   mesh.pyc      pausescreen.py  util.pyc

olpcgames/data:
__init__.py  sleeping_svg.py

pymunk:
_chipmunk.py  __init__.py  libchipmunk32.so  libchipmunk64.so  libchipmunk.dll  libload.py  pymunk.py  util.py  vec2d.py

scenes:
default.py               demo13_joints1.py  demo4_api.py.mine  demo6_walls.py         elements_jumble.py  pymunx_jumble.py
demo11a_cairo_images.py  demo14_camera.py   demo4_api.py.r206  demo7_poly.py          __init__.py
demo11_cairo.py          demo15_menu.py     demo4_api.py.r84   demo8_contact.py       jumble.py
demo12_opengl_pyglet.py  demo4_api.py       demo5_addmany.py   demo9_contactsound.py  mixer.py