COLLAPSE ALL
  • Home
  • About Pixie
    • Pixie Overview
    • Data Sources
    • How Pixie uses eBPF
    • Roadmap
    • FAQ
    • Troubleshooting
  • Installing Pixie
    • Requirements
  • Using Pixie
    • Using the Live UI
    • Using the CLI
    • Using the API
  • Tutorials
  • Reference
    • Architecture
    • PxL
      • Compile Time Functions
        • px.days
        • px.equals_any
        • px.format_duration
        • px.hours
        • px.make_upid
        • px.microseconds
        • px.milliseconds
        • px.minutes
        • px.now
        • px.parse_duration
        • px.parse_time
        • px.script_reference
        • px.seconds
        • px.strptime
        • px.uint128

Compile Time Functions

Functions that are evaluated and usable at run time. Unlike Execution Time Functions, these are usable at compile-time meaning you can pass them as parameters to Operators as well as ExecTime functions.

FunctionDescription
px.daysGets the specified number of days.
px.equals_anyReturns true if the value is in the list.
px.format_durationConvert a duration in nanoseconds to a duration string.
px.hoursGets the specified number of hours.
px.make_upidCreate a UPID from its components to represent a process.
px.microsecondsGets the specified number of microseconds.
px.millisecondsGets the specified number of milliseconds.
px.minutesGets the specified number of minutes.
px.nowGet the current time.
px.parse_durationParse a duration string to a duration in nanoseconds.
px.parse_timeParse the various time formats into a unified format.
px.script_referenceCreate a reference to a PxL script.
px.secondsGets the specified number of seconds.
px.strptimeParse a datestring into a px.Time.
px.uint128Parse the UUID string into a UInt128.
This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.