Sign In Register

How can we help you today?

Start a new topic
Answered

statementCount in Test Harness

I noticed a label named "statementCount:11" in the Inspector panel of the Test Harness, What is the meaning of the count? And is it something that we can use to optimize cloud code functions if the count is too high?



Best Answer

Hi Christian


StatementCount counts everything that preforms logic. It will count getting or setting script data, querying the database's and calculations.

It will not count  if statements or assigning a value to a variable. 

Yes you could use it as a reference when optimizing code.


Cheers

Katie 


Answer

Hi Christian


StatementCount counts everything that preforms logic. It will count getting or setting script data, querying the database's and calculations.

It will not count  if statements or assigning a value to a variable. 

Yes you could use it as a reference when optimizing code.


Cheers

Katie 

Thanks Katie good to know

Login to post a comment