Documentation

Std.Async.Process

Represents resource usage statistics for a process or thread. All time values are in milliseconds.

  • CPU time spent in user mode (milliseconds)

  • cpuSystemTime : Time.Millisecond.Offset

    CPU time spent in kernel mode (milliseconds)

  • peakResidentSetSizeKb : UInt64

    Peak resident set size (max physical memory usage) in kilobytes

  • sharedMemorySizeKb : UInt64

    Size of shared memory segments (kilobytes)

  • unsharedDataSizeKb : UInt64

    Size of unshared data segment (kilobytes)

  • unsharedStackSizeKb : UInt64

    Size of unshared stack segment (kilobytes)

  • minorPageFaults : UInt64

    Number of minor (soft) page faults (no disk I/O)

  • majorPageFaults : UInt64

    Number of major (hard) page faults (disk I/O required)

  • swapOperations : UInt64

    Number of swap ins or swap outs

  • blockInputOps : UInt64

    Number of block input operations (disk reads)

  • blockOutputOps : UInt64

    Number of block output operations (disk writes)

  • messagesSent : UInt64

    Number of IPC messages sent

  • messagesReceived : UInt64

    Number of IPC messages received

  • signalsReceived : UInt64

    Number of signals received

  • voluntaryContextSwitches : UInt64

    Number of voluntary context switches (process yielded CPU)

  • involuntaryContextSwitches : UInt64

    Number of involuntary context switches (process preempted)

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      A process identifier, represented by a numeric ID in UNIX systems (e.g. 1000).

      • toUInt64 : UInt64

        The numeric process ID.

      Instances For
        def Std.IO.Process.instDecidableEqPId.decEq (x✝ x✝¹ : PId) :
        Decidable (x✝ = x✝¹)
        Equations
        Instances For
          Equations
          Instances For
            @[implicit_reducible]
            Equations
            @[inline]

            Gets the title of the current process.

            Equations
            Instances For
              @[inline]

              Sets the title of the current process.

              Equations
              Instances For
                @[inline]

                Gets the current working directory.

                Equations
                Instances For
                  @[inline]

                  Changes the current working directory to a new one.

                  Equations
                  Instances For
                    @[inline]

                    Gets the scheduling priority of a process.

                    Equations
                    Instances For
                      @[inline]
                      def Std.IO.Process.setPriority (pid : PId) (priority : Int64) :

                      Sets the scheduling priority of a process.

                      Equations
                      Instances For
                        @[inline]

                        Retrieves resource usage statistics.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          @[inline]

                          Returns the absolute path of the current executable.

                          Equations
                          Instances For
                            @[inline]

                            Returns the amount of free system memory in bytes.

                            Equations
                            Instances For
                              @[inline]

                              Returns the total system memory in bytes.

                              Equations
                              Instances For
                                @[inline]

                                Returns the constrained memory limit in bytes.

                                Equations
                                Instances For
                                  @[inline]

                                  Returns the available memory for allocation in bytes.

                                  Equations
                                  Instances For