[google] Fix bugs in sampled profile collection

2011-09-30 Thread Easwaran Raman
This fixes two issues with sampled profile collection. It delays cleanup of instrumentation_to_be_sampled after all callgraph nodes have been instrumented and prevents gcov_sample_counter_decl and gcov_sampling_rate_decl from being garbage collected. Ok for google/gcc-4_6 and google/main

Re: [google] Fix bugs in sampled profile collection

2011-09-30 Thread Xinliang David Li
ok. David On Fri, Sep 30, 2011 at 6:54 PM, Easwaran Raman era...@google.com wrote: This fixes two issues with sampled profile collection. It delays cleanup of instrumentation_to_be_sampled after all callgraph nodes have been instrumented and prevents  gcov_sample_counter_decl and