CPU Usage of standalone application
Posted: Mon Mar 14, 2022 4:56 pm
Hello everyone,
I recently developed an application that does some simple things which are the following:
The above commands run in a loop every second approximately(depends of the time it takes to execute).
I see that in an i7 7700HQ 8core laptop, it takjes approx. 15% of cpu usage.
Does this percent include the load of the 2x batch files when running or it is just the livecode standalone app which uses 15%?
Also what I see, is that because the server doesnt close the connection to keep it alive to send new messages, the command "open socket" blocks the stack untill I set a time-out time.
Thanks in advance
I recently developed an application that does some simple things which are the following:
- Opens a socket connection to a server
- Captures the response of the server, which includes some json foramted data
- Stores them in a text field and then saves the content of the text field to a .json file
- closes connection
- Then runs two .batch files with Launch document command, one that corrects the json format and one that converts json to XML
The above commands run in a loop every second approximately(depends of the time it takes to execute).
I see that in an i7 7700HQ 8core laptop, it takjes approx. 15% of cpu usage.
Does this percent include the load of the 2x batch files when running or it is just the livecode standalone app which uses 15%?
Also what I see, is that because the server doesnt close the connection to keep it alive to send new messages, the command "open socket" blocks the stack untill I set a time-out time.
Thanks in advance