{"id":"compute.profiling--memoryTimeline","name":"memoryTimeline","owner":"yeho","package":"compute.profiling","kind":"thing","signature":"external thing memoryTimeline","description":"A memory timeline record carrying label, samples, 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":"samples","kind":"field","type":"list of memorySample","description":"Stores samples as list of memorySample.","signature":"list of memorySample samples","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":"memoryTimeline","kind":"constructor","parameters":[{"name":"label","type":"text","description":"Label."},{"name":"note","type":"text","description":"Note."}],"returns":"void","signature":"memoryTimeline(text label, text note)","description":"Memory timeline.","tags":["thing","constructor","compute.profiling"],"updated":"2026-09-09"},{"name":"AddSample","kind":"method","parameters":[{"name":"sample","type":"memorySample","description":"Sample."}],"returns":"void","signature":"AddSample(memorySample sample)","description":"Add sample.","tags":["thing","method","compute.profiling"],"exampleId":"method-AddSample-4","updated":"2026-09-09"},{"name":"SampleCount","kind":"method","parameters":[],"returns":"int","signature":"SampleCount() returns int","description":"Sample count.","tags":["thing","method","compute.profiling"],"exampleId":"method-SampleCount-5","updated":"2026-09-09"},{"name":"PeakBytes","kind":"method","parameters":[],"returns":"int","signature":"PeakBytes() returns int","description":"Peak bytes.","tags":["thing","method","compute.profiling"],"exampleId":"method-PeakBytes-6","updated":"2026-09-09"},{"name":"TotalDeltaBytes","kind":"method","parameters":[],"returns":"int","signature":"TotalDeltaBytes() returns int","description":"Total delta bytes.","tags":["thing","method","compute.profiling"],"exampleId":"method-TotalDeltaBytes-7","updated":"2026-09-09"},{"name":"TotalReusedBytes","kind":"method","parameters":[],"returns":"int","signature":"TotalReusedBytes() returns int","description":"Total reused bytes.","tags":["thing","method","compute.profiling"],"exampleId":"method-TotalReusedBytes-8","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-9","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":487,"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 memoryTimeline","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.\nmemoryTimeline sample = memoryTimeline(\"Player health\", \"note\")\nConsole.Log(Text.From(sample.label))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__memorytimeline\"\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":"e1b0848522255a2cd0b2c734681c2c5c8d8afb45f2ab0b7cd4762c6105c9a5af","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AddSample-4","title":"memoryTimeline.AddSample","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Add sample.\nmemoryTimeline instance = memoryTimeline(\"Player health\", \"note\")\nmemorySample argument_sample = memorySample(\"Player health\", \"stage\", \"device\", 4, 4, 4, 4, \"note\")\ninstance.AddSample(argument_sample)\nConsole.Log(\"AddSample completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__memorytimeline\"\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":"f665317c862d70e462ed8102e37a996b7797098b69dcb760b6acefd1d60edb4e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-SampleCount-5","title":"memoryTimeline.SampleCount","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Sample count.\nmemoryTimeline instance = memoryTimeline(\"Player health\", \"note\")\nint result = instance.SampleCount()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__memorytimeline\"\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":"6f976842294b9fa9a59f6512a510f4b894ac3000fbeb830efd56b80c3898b26b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-PeakBytes-6","title":"memoryTimeline.PeakBytes","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Peak bytes.\nmemoryTimeline instance = memoryTimeline(\"Player health\", \"note\")\nint result = instance.PeakBytes()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__memorytimeline\"\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":"a1b948e30313cdd7352250b308071d6b3520e87642eebae69f97ae4e0af77188","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-TotalDeltaBytes-7","title":"memoryTimeline.TotalDeltaBytes","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Total delta bytes.\nmemoryTimeline instance = memoryTimeline(\"Player health\", \"note\")\nint result = instance.TotalDeltaBytes()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__memorytimeline\"\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":"7212a61e59a1ab173f7715d482b80bd4df7affbf44e71a4ada27251477fa5a32","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-TotalReusedBytes-8","title":"memoryTimeline.TotalReusedBytes","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.profiling\n\n// Total reused bytes.\nmemoryTimeline instance = memoryTimeline(\"Player health\", \"note\")\nint result = instance.TotalReusedBytes()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__memorytimeline\"\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":"1cbcaef77b154e09964dac00814f66a9c1bd0e6edb88ae69e17f6ee078607628","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-9","title":"memoryTimeline.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.\nmemoryTimeline instance = memoryTimeline(\"Player health\", \"note\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_profiling__memorytimeline\"\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":"7fd22f9e5c7d576d37074bdeb03d07834544520e81d4c5ff4f313f56fa2a4d79","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["label","samples","note","memoryTimeline","AddSample","SampleCount","PeakBytes","TotalDeltaBytes","TotalReusedBytes","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.profiling--memoryTimeline","json":"https://demonhunterlabs.com/reference/items/compute.profiling--memoryTimeline.json","markdown":"https://demonhunterlabs.com/reference/text/compute.profiling--memoryTimeline.md"}
