← Tools

cpl profile

run, then show each line's hits and share of the time

usage: cpl profile <file.cp> [input] [options]

Runs the program on the input file, or standard input, and shows each line
with how many times it ran and the share of the time spent there. Time in
library code is the time of the line that called it. The program's own
output is not shown.

options:
  --native         profile the C++ of `cpl build`, built with a counter at
                   each statement (with the flags of the file's judge, on its stack); the counts are the
                   interpreter's, the times are the judge's
  --format json    one JSON object: the lines with their hits and nanoseconds

Generated from cpl 0.2.2 (dev, a0d0078e).