summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-07 02:24:18 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-01-01 14:32:07 -0800
commit9bb3b29517f87de33c5e2e47b2a75da4417284a3 (patch)
tree198d7fbc673d61c14e8d189d74dee151cd6a72f6 /MobileCydia.mm
parent3121443aa805f1f89fc6b81b4957fe4d0aedd692 (diff)
Further break down _profile usage for ChangesController.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm15
1 files changed, 10 insertions, 5 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 74ec4d2..9824346 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -7546,12 +7546,15 @@ freeing the view controllers on tab change */
packages_ = CFArrayCreateMutable(kCFAllocatorDefault, [packages count], NULL);
_trace();
- for (Package *package in packages)
- if ([package upgradableAndEssential:YES] || [package visible])
- CFArrayAppendValue(packages_, package);
-
+ _profile(ChangesController$_reloadPackages$Filter)
+ for (Package *package in packages)
+ if ([package upgradableAndEssential:YES] || [package visible])
+ CFArrayAppendValue(packages_, package);
+ _end
_trace();
- [(NSMutableArray *) packages_ radixSortUsingFunction:reinterpret_cast<SKRadixFunction>(&PackageChangesRadix) withContext:NULL];
+ _profile(ChangesController$_reloadPackages$radixSort)
+ [(NSMutableArray *) packages_ radixSortUsingFunction:reinterpret_cast<SKRadixFunction>(&PackageChangesRadix) withContext:NULL];
+ _end
_trace();
}
@@ -7649,6 +7652,8 @@ freeing the view controllers on tab change */
target:self
action:@selector(refreshButtonClicked)
] autorelease]];
+
+ PrintTimes();
} }
@end