{"id":"compute.profiling--BuildTrainingExecutionEvent","name":"BuildTrainingExecutionEvent","owner":"yeho","package":"compute.profiling","kind":"function","signature":"external BuildTrainingExecutionEvent(text label, text backend, text subject, profileTiming timing, text status, text note) returns executionEvent","description":"Build training execution event.","context":"Collect and describe compute timing, work, and profiling records.","parameters":[{"name":"label","type":"text","description":"Supply label as text."},{"name":"backend","type":"text","description":"Supply backend as text."},{"name":"subject","type":"text","description":"Supply subject as text."},{"name":"timing","type":"profileTiming","description":"Supply timing as profileTiming."},{"name":"status","type":"text","description":"Supply status as text."},{"name":"note","type":"text","description":"Supply note as text."}],"returns":"executionEvent","members":[],"tags":["compute","compute.profiling","cpu","function","profiling","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/profiling/profiling.yh","line":735,"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 BuildTrainingExecutionEvent","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.\ntext label = \"Player health\"\ntext backend = \"cpu-oracle\"\ntext subject = \"subject\"\nprofileTiming timing = profileTiming(\"Player health\", \"stage\", \"origin\", 1, 1, \"note\")\ntext status = \"ready\"\ntext note = \"note\"\nexecutionEvent result = BuildTrainingExecutionEvent(label, backend, subject, timing, status, note)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__buildtrainingexecutionevent\"\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":"9da53c0eddd716e9add5de2a2177548ee8b3275c220ee2925546b3ea54ef83b9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=compute.profiling--BuildTrainingExecutionEvent","json":"https://demonhunterlabs.com/reference/items/compute.profiling--BuildTrainingExecutionEvent.json","markdown":"https://demonhunterlabs.com/reference/text/compute.profiling--BuildTrainingExecutionEvent.md"}
