mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add support for Tracy profiler (#15113)
This commit is contained in:
parent
6f23de41fb
commit
4aec4fbe6f
19 changed files with 379 additions and 4 deletions
|
@ -109,7 +109,12 @@ void ScriptApiSecurity::initializeSecurity()
|
|||
"string",
|
||||
"table",
|
||||
"math",
|
||||
"bit"
|
||||
"bit",
|
||||
// Not sure if completely safe. But if someone enables tracy, they'll
|
||||
// know what they do.
|
||||
#if BUILD_WITH_TRACY
|
||||
"tracy",
|
||||
#endif
|
||||
};
|
||||
static const char *io_whitelist[] = {
|
||||
"close",
|
||||
|
@ -303,6 +308,11 @@ void ScriptApiSecurity::initializeSecurityClient()
|
|||
"table",
|
||||
"math",
|
||||
"bit",
|
||||
// Not sure if completely safe. But if someone enables tracy, they'll
|
||||
// know what they do.
|
||||
#if BUILD_WITH_TRACY
|
||||
"tracy",
|
||||
#endif
|
||||
};
|
||||
static const char *os_whitelist[] = {
|
||||
"clock",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue