suspendTransaction

Suspends the timing of a transaction.

void suspendTransaction(const string &id);

Parameters

id: The identifier of the event

Return Value

None.

Remarks

This call, together with resumeTransaction, is used to exclude code from a timed transaction.

Example

startTransaction("logon");

// Step one: send username & password to server

...

// Get response from server and extract the server alocated user ID

...

suspendTransaction("logon"); // stop timing

// Using the returned user ID, get user authentication string from external database (SLOW!) e.g. persistent cookie value

...

resumeTransaction("logon"); // resume timing

// Send authentication string to server

...

stopTransaction("logon");

// Logon transaction complete

See also: endTransaction

failTransaction

getNumberOfWarmupIterations

resumeTransaction

startTransaction

 

This topic was last updated on 2月 01, 2019, at 11:13:24 午前.

Eggplant icon Eggplant.io | Documentation Home | User Forums | Support | Copyright © 2019 Eggplant