Features/Optimize TreeViews: Difference between revisions

Godiard (talk | contribs)
Godiard (talk | contribs)
Line 72: Line 72:


== How To Test ==
== How To Test ==
We did a test program that has a list (treeview) with many rows.  Each row has a cellrenderer icon.  The program automatically starts scrolling until the end of the list is reached.  Then we can get profiling information using Python cProfile http://docs.python.org/2/library/profile.html .  We ran the test like this inside a Sugar shell:


     python -m cProfile test_treeview.py > profile.txt
To test the changes in the journal we used a python program to start the journal window from a terminal.
You can download it here [http://dev.laptop.org/~gonzalo/start_journal.py]
 
To use it do:
 
     python -m cProfile start_journal.py > profile.txt
 
After run it in a Sugar terminal, the view jump to the Home, but in the frame you can see two journal icons.
The second is the profiled version. In the toolbar have a Stop button.
After stop, you can check the profile.txt file.


== User Experience ==
== User Experience ==