]> git.saurik.com Git - cydia.git/commitdiff
Further break down _profile usage for ChangesController.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 7 Dec 2010 10:24:18 +0000 (02:24 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 1 Jan 2011 22:32:07 +0000 (14:32 -0800)
MobileCydia.mm

index 74ec4d2280520ae79191d4a61af1d70c56e97421..98243467b184a53ac30783f6f9117609b89402f0 100644 (file)
@@ -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