{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreic54f5maw6dw4a2vvbgune6zlmztxo5j55szy74fxubkiywhwh3hy",
    "uri": "at://did:plc:i7budt2wflrcfy6jtvfocbix/app.bsky.feed.post/3mhnckjmmyvk2"
  },
  "path": "/viewtopic.php?p=1278659#p1278659",
  "publishedAt": "2026-03-22T09:22:25.000Z",
  "site": "https://www.tt-forums.net",
  "tags": [
    "Download sqdbg-profiler-vs 0.1.0.vsix",
    "https://github.com/PaSaSaP/sqdbg-profiler-vs",
    "MustBe"
  ],
  "textContent": "It's me again! Did you know that with sqdbg you can profile your GameScript or AI?\n\nCheck out the functions available in the API, copied from the sqdbg repository:\n\nCode:\n\n\n    sqdbg_prof_start Enable profiler and start collecting datasqdbg_prof_stop Disable profiler and remove all collected datasqdbg_prof_pause Pause profilersqdbg_prof_resume Resume paused profiler. Should be placed in the same call frame as pausesqdbg_prof_gets Get a profile report of the current or specified thread, or the specified block as a string. Parameter optionally takes a thread, and requires group name or report type (0: call graph, 1: flat). E.g.: sqdbg_prof_gets(1) or sqdbg_prof_gets(thread, 1). Measured peak times are ignored in total and average times in block reports.\n\nProfiling with Debug Console\n\n\n  * Start a debugging session.\n  * Open Debug Console in VS Code (Ctrl+Shift+Y on Windows).\n  * In the text input field, type sqdbg_prof_start() and press Enter.\n  * Then type sqdbg_prof_gets(1) and press Enter.\n  * You should get something like:\n\n\nProfiling with VS Code Addon\n\nYou can do the same with the VS Code addon: Download sqdbg-profiler-vs 0.1.0.vsix\nSource code: https://github.com/PaSaSaP/sqdbg-profiler-vs\n\n\n  * Start a debugging session so the addon can read data from it.\n  * Select the command: Open Squirrel Profiler from the command palette.\n  * Click Start.\n  * Click Update.\n  * You should get something like:\n\n\nEnjoy!\n\nStatistics: Posted by MustBe — 22 Mar 2026 09:22\n\n* * *",
  "title": "OpenTTD Development • Re: OpenTTD Squirrel Debugger & Profiler for AI / GameScript",
  "updatedAt": "2026-03-22T09:22:25.000Z"
}