{"id":"compute.profiling--profileTiming","name":"profileTiming","owner":"yeho","package":"compute.profiling","kind":"thing","signature":"external thing profileTiming","description":"A profile timing record carrying label, stage, origin, plannedMs, actualMs, and related state.","context":"Collect and describe compute timing, work, and profiling records.","parameters":[],"returns":"void","members":[{"name":"label","kind":"field","type":"text","description":"Stores label as text.","signature":"text label","tags":["thing","field","compute.profiling"],"updated":"2026-09-09"},{"name":"stage","kind":"field","type":"text","description":"Stores stage as text.","signature":"text stage","tags":["thing","field","compute.profiling"],"updated":"2026-09-09"},{"name":"origin","kind":"field","type":"text","description":"Stores origin as text.","signature":"text origin","tags":["thing","field","compute.profiling"],"updated":"2026-09-09"},{"name":"plannedMs","kind":"field","type":"int","description":"Stores planned ms as int.","signature":"int plannedMs","tags":["thing","field","compute.profiling"],"updated":"2026-09-09"},{"name":"actualMs","kind":"field","type":"int","description":"Stores actual ms as int.","signature":"int actualMs","tags":["thing","field","compute.profiling"],"updated":"2026-09-09"},{"name":"note","kind":"field","type":"text","description":"Stores note as text.","signature":"text note","tags":["thing","field","compute.profiling"],"updated":"2026-09-09"},{"name":"profileTiming","kind":"constructor","parameters":[{"name":"label","type":"text","description":"Label."},{"name":"stage","type":"text","description":"Stage."},{"name":"origin","type":"text","description":"Origin."},{"name":"plannedMs","type":"int","description":"Planned ms."},{"name":"actualMs","type":"int","description":"Actual ms."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"profileTiming(text label, text stage, text origin, int plannedMs, int actualMs, text note)","description":"Profile timing.","tags":["thing","constructor","compute.profiling"],"updated":"2026-09-09"},{"name":"DeltaMs","kind":"method","parameters":[],"returns":"int","signature":"DeltaMs() returns int","description":"Delta ms.","tags":["thing","method","compute.profiling"],"exampleId":"method-DeltaMs-7","updated":"2026-09-09"},{"name":"HasBudget","kind":"method","parameters":[],"returns":"bool","signature":"HasBudget() returns bool","description":"Has budget.","tags":["thing","method","compute.profiling"],"exampleId":"method-HasBudget-8","updated":"2026-09-09"},{"name":"WithinBudget","kind":"method","parameters":[],"returns":"bool","signature":"WithinBudget() returns bool","description":"Within budget.","tags":["thing","method","compute.profiling"],"exampleId":"method-WithinBudget-9","updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.profiling"],"exampleId":"method-Describe-10","updated":"2026-09-09"}],"tags":["compute","compute.profiling","cpu","method","profiling","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/profiling/profiling.yh","line":3,"sha256":"067dd2a8894dc02cf9197cfff4d83258fae401d7f03ae44b9f38d3c68bed1e7b"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use profileTiming","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.profiling\n\n// Collect and describe compute timing, work, and profiling records.\nprofileTiming sample = profileTiming(\"Player health\", \"stage\", \"origin\", 1, 1, \"note\")\nConsole.Log(Text.From(sample.label))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__profiletiming\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.profiling\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/profiling\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"69433d742faa3b12006a7cc6b3c29b6f466014e9f65181760abc3149c3c2ea19","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-DeltaMs-7","title":"profileTiming.DeltaMs","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Delta ms.\nprofileTiming instance = profileTiming(\"Player health\", \"stage\", \"origin\", 1, 1, \"note\")\nint result = instance.DeltaMs()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__profiletiming\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.profiling\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/profiling\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"d3eb1d8d3a079330310f8aa281d2f1618af2f390b333c7a71a3bc83c833b21b6","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-HasBudget-8","title":"profileTiming.HasBudget","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Has budget.\nprofileTiming instance = profileTiming(\"Player health\", \"stage\", \"origin\", 1, 1, \"note\")\nbool result = instance.HasBudget()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__profiletiming\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.profiling\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/profiling\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"72b0c7a094370af1aca7ed3133ba4e21dacdd44c85176acc39f50b9e3f915d68","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-WithinBudget-9","title":"profileTiming.WithinBudget","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Within budget.\nprofileTiming instance = profileTiming(\"Player health\", \"stage\", \"origin\", 1, 1, \"note\")\nbool result = instance.WithinBudget()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__profiletiming\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.profiling\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/profiling\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"7ffa556fcce9828d9cbc16a1d642bfce844a679a2204e6212d72501da2816344","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-10","title":"profileTiming.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Describe.\nprofileTiming instance = profileTiming(\"Player health\", \"stage\", \"origin\", 1, 1, \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__profiletiming\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.profiling\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/profiling\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"a3de8d97135d017aa9dcd31e33eff20505c83df657840bdb5a9d12a8a8eb40d3","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["label","stage","origin","plannedMs","actualMs","note","profileTiming","DeltaMs","HasBudget","WithinBudget","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.profiling--profileTiming","json":"https://demonhunterlabs.com/reference/items/compute.profiling--profileTiming.json","markdown":"https://demonhunterlabs.com/reference/text/compute.profiling--profileTiming.md"}
