Lr_start_transaction/lr_end_transaction things Combination

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.