lr_start_transaction/lr_end_transaction things together: Lr_start_transaction and lr_end_transaction Create combinatorial functions for the things that are most used, Lr_start_ Transaction starts the function for things, lr_end_transaction is the end function of things, and is responsible for recording the running time of things. The syntax format is as follows:intLr_start_transaction (Const Char*transaction_name); intLr_end_transaction (Const Char* Transaction_name,intstatus); Transacton is the thing name, status is the end state of the thing, there are lr_pass (pass), Lr_fail (failure), Lr_auto (Auto), Lr_stop (pause), lr_pass default is Lr_pass, Can be modified by lr_set_transaction_status before the end of the thing. If the state of the end thing is not specified in Lr_end_transaction as Lr_auto, but explicitly formulated as Lr_pass, Lr_fail, and lr_stop, then things will end up in the final state. It is important to note that when things start without lr_end_transaction, they cannot use the same thing name unless the thing has ended through lr_end_transaction. Action () {lr_start_transaction ("Test"); //thing content///////////////////Lr_start_transaction ("Test"); //thing content/////////////////// Lr_end_transaction ("Test", Lr_auto); Lr_end_transaction ("Test", Lr_auto); //thing content/////////////////// return 0;}//things that are not finished must be wrong. Action () {lr_start_transaction ("Test"); //thing content///////////////////Lr_end_transaction ("Test", Lr_auto); Lr_start_transaction ("Test"); //thing content///////////////////Lr_end_transaction ("Test", Lr_auto); return 0;} Although the above code contains two"Test"Things, but in the analysis of LR will be done as a thing to do statistics, analysis is mainly based on the name of the thing to carry out systematic analyses, regardless of the specific things involved in the operation.
Lr_start_transaction/lr_end_transaction things Combination