]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix profiler
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 17 Feb 2009 20:26:17 +0000 (14:26 -0600)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 17 Feb 2009 20:26:17 +0000 (14:26 -0600)
basis/ui/tools/profiler/profiler.factor

index f99cb6b368875bc3000c496745feb0d24f314090..4eb5833ed0fefb746efcd9605e8a547a513fb940 100644 (file)
@@ -87,7 +87,7 @@ M: method-renderer column-titles drop { "" "Method" "Count" } ;
     ] keep <profiler-model> ;
 
 : <profiler-table> ( model renderer -- table )
-    [ first present ] <search-table>
+    [ dup [ first present ] when ] <search-table>
         [ invoke-primary-operation ] >>action ;
 
 : <profiler-filter-model> ( counts profiler -- model' )