ComObjectsProfilerFinish

Syntax

int ComObjectsProfilerFinish(ComObjectsProfilerFinishArg tArg)

Parameters

tArg. Operation execution parameters.

Description

The ComObjectsProfilerFinish operation disables memory leaks detection and saves the leaks detection log to file.

Comments

To execute the operation, in the tArg.LogFile field specify path and name of the file, to which the log is to be saved. Before executing the operation, it is recommended to execute the ComObjectsProfilerClean operation.

If after the leaks detection log is saved to file, it is also required to clear the log in the memory, set the tArg.ResetObjects field to True.

The operation results in the number of registered memory leaks.

Example

Below is the example of disabling memory leaks detection and saving the obtained log to file.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ComObjectsProfilerFinish xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
  <LogFile>D:\Work\ComLog.log</LogFile>
  <ResetObjects>true</ResetObjects>
  </tArg>
  </ComObjectsProfilerFinish>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <ComObjectsProfilerFinishResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">156</ComObjectsProfilerFinishResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"ComObjectsProfilerFinish" :
{
"tArg" :
{
"LogFile" : "D:\Work\ComLog.log",
"ResetObjects" : "true"
}
}
}

JSON response:

{
"ComObjectsProfilerFinishResult" : "156"
}
public static int ComObjectsProfilerFinish()
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tStart = new ComObjectsProfilerFinish()
{
tArg = new ComObjectsProfilerFinishArg()
{
LogFile = "D:\\Work\\ComLog.log",
ResetObjects = true
}
};
// Disable memory leaks detection
var result = somClient.ComObjectsProfilerFinish(tStart);
return result;
}

See also:

Working with Development Environment