gnome-power-manager r2160 - in trunk: . data src test
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r2160 - in trunk: . data src test
- Date: Wed, 25 Apr 2007 19:18:37 +0100 (BST)
Author: rhughes
Date: 2007-04-25 19:18:36 +0100 (Wed, 25 Apr 2007)
New Revision: 2160
ViewCVS link: http://svn.gnome.org/viewcvs/gnome-power-manager?rev=2160&view=rev
Modified:
trunk/ChangeLog
trunk/data/
trunk/src/gpm-array-float.c
trunk/src/gpm-array-float.h
trunk/src/gpm-array.c
trunk/src/gpm-array.h
trunk/src/gpm-cell-array.c
trunk/src/gpm-debug.c
trunk/src/gpm-debug.h
trunk/src/gpm-main.c
trunk/src/gpm-profile.c
trunk/src/gpm-statistics-core.c
trunk/test/gpm-st-array-float.c
trunk/test/gpm-st-array.c
trunk/test/gpm-st-main.c
trunk/test/gpm-st-profile.c
Log:
2007-04-25 Richard Hughes <richard hughsie com>
* src/gpm-array.c:
* src/gpm-array.h:
* src/gpm-array-float.c:
* src/gpm-array-float.h:
Add some code to help convert to and from a GpmArray.
* src/gpm-debug.c: (gpm_debug_is_verbose):
* src/gpm-debug.h:
Add an extra method so we only do the (expensive) profiling debugging
when we are versbose to a console.
* src/gpm-cell-array.c: (gpm_cell_array_get_time_until_action):
Check for a zero return value, which we can now get on empty profile.
* src/gpm-main.c:
Don't include stuff we don't use.
* src/gpm-statistics-core.c: (gpm_statistics_refresh_data):
Adjust the smoothing.
* src/gpm-profile.c:
Move to a 1D mapping of data, rather than the hodge-podge of refresh
methods that was done before. This makes querying time and data for
the graph program much less CPU intensive, which is good.
Startup time is measurably improved.
* test/gpm-st-array-float.c: (gpm_st_array_float):
* test/gpm-st-array.c: (gpm_st_array):
* test/gpm-st-main.c: (main):
* test/gpm-st-profile.c: (gpm_st_profile):
Fix all of the tests - now all work!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]