{"id":"compute.profiling--profileTrace","name":"profileTrace","owner":"yeho","package":"compute.profiling","kind":"thing","signature":"external thing profileTrace","description":"A profile trace record carrying label, shape, values, note.","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":"shape","kind":"field","type":"shapeTrace","description":"Stores shape as shapeTrace.","signature":"shapeTrace shape","tags":["thing","field","compute.profiling"],"updated":"2026-09-09"},{"name":"values","kind":"field","type":"valueTrace","description":"Stores values as valueTrace.","signature":"valueTrace values","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":"profileTrace","kind":"constructor","parameters":[{"name":"label","type":"text","description":"Label."},{"name":"shape","type":"shapeTrace","description":"Shape."},{"name":"values","type":"valueTrace","description":"Values."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"profileTrace(text label, shapeTrace shape, valueTrace values, text note)","description":"Profile trace.","tags":["thing","constructor","compute.profiling"],"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-5","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":195,"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 profileTrace","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.\nprofileTrace sample = profileTrace(\"Player health\", shapeTrace(\"Player health\", \"origin\", tensorShape(\"element Type\", []), \"note\"), valueTrace(\"Player health\", \"origin\", [], \"note\"), \"note\")\nConsole.Log(Text.From(sample.label))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__profiletrace\"\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":"fdfcaa6a512f9989d1bf960acdaf733b7414d93c42d0baf18cdf0a4c81eca988","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-5","title":"profileTrace.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.\nprofileTrace instance = profileTrace(\"Player health\", shapeTrace(\"Player health\", \"origin\", tensorShape(\"element Type\", []), \"note\"), valueTrace(\"Player health\", \"origin\", [], \"note\"), \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__profiletrace\"\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":"d9becb25d0050062832a5518db92904b7cd0fd0c4bd783bee735de1c788c25de","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["label","shape","values","note","profileTrace","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.profiling--profileTrace","json":"https://demonhunterlabs.com/reference/items/compute.profiling--profileTrace.json","markdown":"https://demonhunterlabs.com/reference/text/compute.profiling--profileTrace.md"}
