.do
Monitoring

perf

Track application performance with edge-native monitoring. Sub-millisecond metrics, automatic bottleneck detection, and AI-powered optimization recommendations.

perf

Perf.do

Overview

The perf primitive is part of the .do platform's semantic API system. It follows the $.Subject.verb.Object pattern for consistent, intuitive interactions across SDK, CLI, API, and MCP interfaces.

Semantic Pattern

All perf operations follow the semantic $.Perf.verb.Object pattern:

import { $, perf } from 'sdk.do'

// Create resources
await $.Perf.create.Resource({ /* config */ })

// Query data
await $.Perf.get.Data({ /* params */ })

// Update state
await $.Perf.update.Status({ /* changes */ })

Quick Start

import { perf } from 'sdk.do'

// Initialize and use the primitive
const result = await perf.operation({
  // configuration parameters
})

Access Methods

The perf primitive is accessible through multiple interfaces:

SDK

TypeScript/JavaScript library for programmatic access:

import { perf } from 'sdk.do'
await perf.method({ /* ... */ })

SDK Documentation

CLI

Command-line interface for terminal operations:

do perf <command> [options]

CLI Documentation

API

REST/RPC endpoints for HTTP integration:

curl -X POST https://api.do/v1/perf \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'

API Documentation

MCP

Model Context Protocol for AI assistant integration:

Use perf primitives with AI assistants via MCP

MCP Documentation

See other primitives in the monitoring category.