---
schema_version: "1"
id: 489502dd271dabad59871dad3788146283d193de59f31f42153ca94783ca37ad
title: Monitor Code
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/commerce-api/guides/code-profiler.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/code-profiler.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c374039257bcfafed7e188d7b076c3aa6ec4334fbd1a77a489027b57e97a6b3b
products:
  - Composable Storefront
  - Salesforce APIs
---
# Monitor Code

Use the Code Profiler Business Manager feature to monitor SCAPI API performance and determine where performance bottlenecks are in your custom code. With B2C Commerce 24.4, two new trace types are provided:

- `REST_SCAPI`: For SCAPI system APIs, including Shopper, Admin, and Custom APIs.
- `REST_SCAPI_SCRIPT`: Specifically for the Custom API Scripts. Use this trace type to trace script execution and debug Custom APIs.

Both of these new trace types provide API path information and execution time.

For implementation details, see [Use Code Profiler.](https://developer.salesforce.com/docs/commerce/b2c-commerce/guide/b2c-site-performance.html#use-code-profiler)
