---
title: "Codeunit 1925 Sampling Perf. Profiler Impl., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/points/
object: https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 1925 Sampling Perf. Profiler Impl., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/points/

11 procedures and triggers with a step in src/System Application/App/Performance Profiler/src/SamplingPerfProfilerImpl.Codeunit.al, in source order, read from the text, not from a run.

## Stop

[Line 43](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L43).

- [50](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L50) calls `UpdateCpuProfile`

## GetData

[Line 62](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L62).

- [66](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L66) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `HasValue`
- [69](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L69) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`

## SetData

[Line 73](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L73).

- [75](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L75) calls `UpdateCpuProfile`

## UpdateCpuProfile

[Line 86](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L86), local.

- [91](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L91) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateOutStream`
- [93](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L93) calls `InitializeCpuProfile`

## InitializeCpuProfile

[Line 96](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L96), local.

- [100](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L100) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [101](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L101) calls `TryDeserializeCpuProfile`

## GetProfilingNodes

[Line 120](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L120).

- [126](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L126) calls `CheckRecordingExists`
- [130](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L130) calls `AddCpuProfileNode`
- [133](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L133) calls `AddCpuProfileNodeDuration`

## AddCpuProfileNode

[Line 136](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L136), local.

- [159](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L159) writes [Table 1921 Profiling Node](https://jonas-paprotka.de/ref/table/1921-profiling-node/) Insert

## AddCpuProfileNodeDuration

[Line 162](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L162), local.

- [166](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L166) writes [Table 1921 Profiling Node](https://jonas-paprotka.de/ref/table/1921-profiling-node/) Modify

## GetProfilingCallTree

[Line 170](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L170).

- [182](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L182) calls `CheckRecordingExists`
- [201](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L201) calls `PopulateDepthFirstTree`

## PopulateDepthFirstTree

[Line 204](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L204), local.

- [236](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L236) calls `AddCpuProfileNode`
- [249](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L249) calls `AddSelfAndFullTime`

## AddSelfAndFullTime

[Line 252](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L252), local.

- [284](https://jonas-paprotka.de/ref/codeunit/1925-sampling-perf-profiler-impl/source/#L284) writes [Table 1921 Profiling Node](https://jonas-paprotka.de/ref/table/1921-profiling-node/) Modify

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
