---
id: object/codeunit/1932
type: object
title: Codeunit 1932 "Scheduled Perf. Profiler Impl."
summary: Codeunit 1932 "Scheduled Perf. Profiler Impl." in System Application (System.Tooling). 17 public procedures, 1 event subscribers. Introduced in BC25, still in BC30, changed in BC26.
tier: official
language: en
tags:
  - codeunit
  - system application
versions:
  introduced: "25"
  last_changed: "26"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 57ef2752bbc4350605958776e2058e48544f895b86209b45d894ab1ac72da278
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Performance%20Profiler/src/ScheduledPerfProfilerImpl.Codeunit.al
    title: src/System Application/App/Performance Profiler/src/ScheduledPerfProfilerImpl.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1932
name: Scheduled Perf. Profiler Impl.
namespace: System.Tooling
app: System Application
extends: null
first_version: "25"
last_version: "30"
present_in:
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "26"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 19
  events: 0
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 5
  implements: 0
---

# Codeunit 1932 "Scheduled Perf. Profiler Impl."

> Codeunit 1932 "Scheduled Perf. Profiler Impl." in System Application (System.Tooling). 17 public procedures, 1 event subscribers. Introduced in BC25, still in BC30, changed in BC26.

System Application · System.Tooling · BC25-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Performance%20Profiler/src/ScheduledPerfProfilerImpl.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| SingleInstance | true |
| Permissions | tabledata "Retention Policy Setup" = ri |

## Event subscriptions

- GetProfilerSchedulesPageId subscribes to Codeunit "System Action Triggers" GetProfilerSchedulesPageId

## Procedures

- `MapActivityTypeToRecord(var PerformanceProfileScheduler: Record "Performance Profile Scheduler"; ActivityType: Enum "Perf. Profile Activity Type")`
- `MapRecordToActivityType(PerformanceProfileScheduler: Record "Performance Profile Scheduler"; var ActivityType: Enum "Perf. Profile Activity Type")`
- `MapRecordToUserName(PerformanceProfileScheduler: Record "Performance Profile Scheduler"): Text`
- `FilterUsers(var PerformanceProfileScheduler: Record "Performance Profile Scheduler"; SecurityID: Guid; ForceFilterToUser: Boolean)`
- `FilterUsers(var RecordRef: RecordRef; SecurityID: Guid; ForceFilterToUser: Boolean)`
- `ValidateScheduleCreationPermissions(UserID: Guid; ScheduleUserID: Guid)`
- `InitializeFields(var PerformanceProfileScheduler: Record "Performance Profile Scheduler"; var ActivityType: Enum "Perf. Profile Activity Type")`
- `ValidatePerformanceProfileSchedulerDates(PerformanceProfileScheduler: Record "Performance Profile Scheduler"; MaxRetentionPeriod: Duration)`
- `ValidatePerformanceProfileSchedulerDatesRelation(PerformanceProfileScheduler: Record "Performance Profile Scheduler")`
- `ValidatePerformanceProfileEndTime(PerformanceProfileScheduler: Record "Performance Profile Scheduler")`
- `ValidatePerformanceProfileScheduler(PerformanceProfileScheduler: Record "Performance Profile Scheduler"; ActivityType: Enum "Perf. Profile Activity Type")`
- `GetRetentionPeriod(): Code[20]`
- `CreateRetentionPolicySetup(ErrorInfo: ErrorInfo)`
- `CreateRetentionPolicySetup(TableId: Integer; RetentionPeriodCode: Code[20])`
- `ValidateThreshold(var PerformanceProfileScheduler: Record "Performance Profile Scheduler")`
- `IsProfilingEnabled(var ScheduleId: Guid): Boolean` (internal)
- `GetStatus(PerformanceProfileScheduler: Record "Performance Profile Scheduler"): Text` (internal)

Plus 1 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 1934 "Perf. Prof. Activity Mapper"](../codeunit/1934.md) (2 calls: `MapActivityTypeToRecord → MapActivityTypeToClientType`, `MapRecordToActivityType → MapClientTypeToActivityType`)
- [Codeunit 152 "User Permissions"](../codeunit/152.md) (1 call: `ValidateScheduleCreationPermissions → CanManageUsersOnTenant`)
- [Codeunit 3902 "Retention Policy Setup"](../codeunit/3902.md) (1 call: `CreateRetentionPolicySetup → FindOrCreateRetentionPeriod`)
- [Page 3901 "Retention Policy Setup Card"](../page/3901.md) (1 call: `CreateRetentionPolicySetup → (object)`)

## Called by

- [Codeunit 1931 "Scheduled Perf. Profiler"](../codeunit/1931.md) (13 calls: `FilterUsers → FilterUsers`, `GetRetentionPeriod → GetRetentionPeriod`, `InitializeFields → InitializeFields`, …)
- [Codeunit 1933 "Performance Profiler Installer"](../codeunit/1933.md) (1 call: `AddRetentionPolicyAllowedTables → CreateRetentionPolicySetup`)
- [Page 1931 "Performance Profile List"](../page/1931.md) (1 call: `OnOpenPage → FilterUsers`)
- [Page 1932 "Perf. Profiler Schedule Card"](../page/1932.md) (1 call: `OnAfterGetCurrRecord → GetStatus`)
- [Page 1933 "Perf. Profiler Schedules List"](../page/1933.md) (1 call: `OnAfterGetRecord → GetStatus`)

## Across versions

- Present in: BC25-30
- Changed (declaration) in: BC26

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Scheduled Perf. Profiler Impl.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
