title: How to get the percentage of execution of a lua script?
body: <p>I run Lua scripts inside c application in a separate task, I added a feature to check on the status of the running script if it's still running or completed. </p>
  
  <p>I want to add some info in case of running script, I want to add the percentage executed from the running script, does Lua support this info by any mean.</p>
  
  <p>I tried to use the info reported in Lua_debug, but it doesn't look to be correct (Like currentlin, definedline), I need the percentage over the whole script not just for a specific function.</p>