search for: my_proc

Displaying 4 results from an estimated 4 matches for "my_proc".

2013 Sep 20
3
[PATCH] preload_app can take an optional block for warmup
...4 --- a/test/unit/test_configurator.rb +++ b/test/unit/test_configurator.rb @@ -172,4 +172,12 @@ class TestConfigurator < Test::Unit::TestCase end end + def test_preload_app + test_struct = TestStruct.new + [ true, false, proc { |a| }, Proc.new { |a| }, lambda { |a| } ].each do |my_proc| + Unicorn::Configurator.new(:preload_app => my_proc).commit!(test_struct) + assert_equal my_proc, test_struct.preload_app + end + end + end -- 1.8.3.4 _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailm...
2009 Apr 28
0
[LLVMdev] O3 passes
...on't want > all of -O3, for example. I tried llvm-gcc -raiseallocs ..., but that > didn't work. I also tried running cc1 directly and it didn't take > -raiseallocs as a parameter either. You are better off run passes explicitly using opt. Try this: llvm-gcc -c -o - -O1 my_proc.c -emit-llvm -mllvm --disable-llvm-optzns | opt list_of_passes Passing -O1 to llvm-gcc means that gcc will perform constant folding and some other small optimizations. Passing -emit-llvm means that LLVM bitcode is produced, suitable for piping to opt. -mllvm --disable-llvm-optzns means that the L...
2009 Apr 28
1
[LLVMdev] O3 passes
...of -O3, for example. I tried llvm-gcc -raiseallocs ..., but that >> didn't work. I also tried running cc1 directly and it didn't take >> -raiseallocs as a parameter either. > > You are better off run passes explicitly using opt. Try this: > llvm-gcc -c -o - -O1 my_proc.c -emit-llvm -mllvm --disable-llvm-optzns | opt list_of_passes > Passing -O1 to llvm-gcc means that gcc will perform constant folding and > some other small optimizations. Passing -emit-llvm means that LLVM bitcode > is produced, suitable for piping to opt. -mllvm --disable-llvm-optzns m...
2009 Apr 28
3
[LLVMdev] O3 passes
Can I specify passes that I want run directly to llvm-gcc? I don't want all of -O3, for example. I tried llvm-gcc -raiseallocs ..., but that didn't work. I also tried running cc1 directly and it didn't take -raiseallocs as a parameter either. Duncan Sands wrote: > On Tuesday 28 April 2009 04:02:47 am Ryan M. Lefever wrote: >> I assume that when -O3 (or O2 or O1) is