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
C
Customer Support
said
almost 7 years ago
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.
Christian Gauthier
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?
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
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
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
Christian Gauthier
Thanks Katie good to know
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics