{"id":"compute.profiling--shapeTrace","name":"shapeTrace","owner":"yeho","package":"compute.profiling","kind":"thing","signature":"external thing shapeTrace","description":"A shape trace record carrying label, origin, shape, 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":"origin","kind":"field","type":"text","description":"Stores origin as text.","signature":"text origin","tags":["thing","field","compute.profiling"],"updated":"2026-09-09"},{"name":"shape","kind":"field","type":"tensorShape","description":"Stores shape as tensorShape.","signature":"tensorShape shape","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":"shapeTrace","kind":"constructor","parameters":[{"name":"label","type":"text","description":"Label."},{"name":"origin","type":"text","description":"Origin."},{"name":"shape","type":"tensorShape","description":"Shape."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"shapeTrace(text label, text origin, tensorShape shape, text note)","description":"Shape trace.","tags":["thing","constructor","compute.profiling"],"updated":"2026-09-09"},{"name":"ElementCount","kind":"method","parameters":[],"returns":"int","signature":"ElementCount() returns int","description":"Element count.","tags":["thing","method","compute.profiling"],"exampleId":"method-ElementCount-5","updated":"2026-09-09"},{"name":"Rank","kind":"method","parameters":[],"returns":"int","signature":"Rank() returns int","description":"Rank.","tags":["thing","method","compute.profiling"],"exampleId":"method-Rank-6","updated":"2026-09-09"},{"name":"IsContiguous","kind":"method","parameters":[],"returns":"bool","signature":"IsContiguous() returns bool","description":"Is contiguous.","tags":["thing","method","compute.profiling"],"exampleId":"method-IsContiguous-7","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-8","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":60,"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 shapeTrace","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.\nshapeTrace sample = shapeTrace(\"Player health\", \"origin\", tensorShape(\"element Type\", []), \"note\")\nConsole.Log(Text.From(sample.label))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__shapetrace\"\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":"56e4034777ee0311e7502574c7c783f1860b2d7fb3965e173961311f739441f7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-ElementCount-5","title":"shapeTrace.ElementCount","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Element count.\nshapeTrace instance = shapeTrace(\"Player health\", \"origin\", tensorShape(\"element Type\", []), \"note\")\nint result = instance.ElementCount()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__shapetrace\"\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":"84b8de34364402fe167e599cb53f9dda0f16f9e7724c46eb5c8ffa880046e4a8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Rank-6","title":"shapeTrace.Rank","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Rank.\nshapeTrace instance = shapeTrace(\"Player health\", \"origin\", tensorShape(\"element Type\", []), \"note\")\nint result = instance.Rank()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__shapetrace\"\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":"5c288b2d7e53c3c6aaf2f8337cf61cc2a20029eb4ae6e85e689de19186e45f1c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsContiguous-7","title":"shapeTrace.IsContiguous","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Is contiguous.\nshapeTrace instance = shapeTrace(\"Player health\", \"origin\", tensorShape(\"element Type\", []), \"note\")\nbool result = instance.IsContiguous()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__shapetrace\"\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":"3ff71d904ec44fffc919f1aac36b4167a212d2fadaf71dd4ce72b02debd151fa","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-8","title":"shapeTrace.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.\nshapeTrace instance = shapeTrace(\"Player health\", \"origin\", tensorShape(\"element Type\", []), \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__shapetrace\"\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":"1d6207d060a97bb4925a1b89296c2caaa9f450db7ff355836b5ba3de1e1f7d47","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["label","origin","shape","note","shapeTrace","ElementCount","Rank","IsContiguous","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.profiling--shapeTrace","json":"https://demonhunterlabs.com/reference/items/compute.profiling--shapeTrace.json","markdown":"https://demonhunterlabs.com/reference/text/compute.profiling--shapeTrace.md"}
