Next: , Previous: Trace Mode, Up: Sampling


3.4 Single Sample

Single-sample sampling is controlled by three RTIs: ss_warmup_size species the warmup size, timing_sim_after_insn specifies the sample start and commit_limit specifies its size. With the RTI settings below the simulation will start in skip mode, warmup mode will start at instruction 900, the sample will start at instruction 1000 and finish after another 5000 instructions. Unlike the other sampling modes, when the sample is finished the simulation finishes.

     ss_warmup_size         100
     timing_sim_after_insn 1000
     commit_limit          5000
     
     # Make sure other "ss_" RTIs are omitted or turn off other schemes.

Single sample is the default scheme, the default skip is 0 instructions and the default commit limit is effectively infinite. See Sampling and Trace Mode RTIs for detailed description of these RTIs.