diff options
author | Steve Bavin <pondlife@pondlife.me> | 2006-10-05 10:07:03 +0000 |
---|---|---|
committer | Steve Bavin <pondlife@pondlife.me> | 2006-10-05 10:07:03 +0000 |
commit | d49c810ec9c6010bf41e0ef7ebad101a79373438 (patch) | |
tree | 26755e1026276ed7f88071a7739497f93dd3ef6a /apps/tagtree.c | |
parent | 3eb9e70b6467becb2aa88cc8d24a82a7c288f1fd (diff) | |
download | rockbox-d49c810ec9c6010bf41e0ef7ebad101a79373438.tar.gz rockbox-d49c810ec9c6010bf41e0ef7ebad101a79373438.zip |
Add CPU boost tracker to see where boosts are coming from
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11125 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r-- | apps/tagtree.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index 377cc27ec0..f9542821d8 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c | |||
@@ -1121,9 +1121,9 @@ int tagtree_load(struct tree_context* c) | |||
1121 | case allsubentries: | 1121 | case allsubentries: |
1122 | case navibrowse: | 1122 | case navibrowse: |
1123 | logf("navibrowse..."); | 1123 | logf("navibrowse..."); |
1124 | cpu_boost(true); | 1124 | cpu_boost_id(true, CPUBOOSTID_TAGTREE); |
1125 | count = retrieve_entries(c, &tcs, 0, true); | 1125 | count = retrieve_entries(c, &tcs, 0, true); |
1126 | cpu_boost(false); | 1126 | cpu_boost_id(false, CPUBOOSTID_TAGTREE); |
1127 | break; | 1127 | break; |
1128 | 1128 | ||
1129 | default: | 1129 | default: |
@@ -1297,11 +1297,11 @@ bool insert_all_playlist(struct tree_context *c, int position, bool queue) | |||
1297 | char buf[MAX_PATH]; | 1297 | char buf[MAX_PATH]; |
1298 | int from, to, direction; | 1298 | int from, to, direction; |
1299 | 1299 | ||
1300 | cpu_boost(true); | 1300 | cpu_boost_id(true, CPUBOOSTID_TAGTREE); |
1301 | if (!tagcache_search(&tcs, tag_filename)) | 1301 | if (!tagcache_search(&tcs, tag_filename)) |
1302 | { | 1302 | { |
1303 | gui_syncsplash(HZ, true, str(LANG_TAGCACHE_BUSY)); | 1303 | gui_syncsplash(HZ, true, str(LANG_TAGCACHE_BUSY)); |
1304 | cpu_boost(false); | 1304 | cpu_boost_id(false, CPUBOOSTID_TAGTREE); |
1305 | return false; | 1305 | return false; |
1306 | } | 1306 | } |
1307 | 1307 | ||
@@ -1338,7 +1338,7 @@ bool insert_all_playlist(struct tree_context *c, int position, bool queue) | |||
1338 | } | 1338 | } |
1339 | playlist_sync(NULL); | 1339 | playlist_sync(NULL); |
1340 | tagcache_search_finish(&tcs); | 1340 | tagcache_search_finish(&tcs); |
1341 | cpu_boost(false); | 1341 | cpu_boost_id(false, CPUBOOSTID_TAGTREE); |
1342 | 1342 | ||
1343 | return true; | 1343 | return true; |
1344 | } | 1344 | } |
@@ -1442,16 +1442,16 @@ struct tagentry* tagtree_get_entry(struct tree_context *c, int id) | |||
1442 | /* Load the next chunk if necessary. */ | 1442 | /* Load the next chunk if necessary. */ |
1443 | if (realid >= current_entry_count || realid < 0) | 1443 | if (realid >= current_entry_count || realid < 0) |
1444 | { | 1444 | { |
1445 | cpu_boost(true); | 1445 | cpu_boost_id(true, CPUBOOSTID_TAGTREE); |
1446 | if (retrieve_entries(c, &tcs2, MAX(0, id - (current_entry_count / 2)), | 1446 | if (retrieve_entries(c, &tcs2, MAX(0, id - (current_entry_count / 2)), |
1447 | false) < 0) | 1447 | false) < 0) |
1448 | { | 1448 | { |
1449 | logf("retrieve failed"); | 1449 | logf("retrieve failed"); |
1450 | cpu_boost(false); | 1450 | cpu_boost_id(false, CPUBOOSTID_TAGTREE); |
1451 | return NULL; | 1451 | return NULL; |
1452 | } | 1452 | } |
1453 | realid = id - current_offset; | 1453 | realid = id - current_offset; |
1454 | cpu_boost(false); | 1454 | cpu_boost_id(false, CPUBOOSTID_TAGTREE); |
1455 | } | 1455 | } |
1456 | 1456 | ||
1457 | return &entry[realid]; | 1457 | return &entry[realid]; |