Skip to content

DTrace(FreeBSD) record support #656

@ghost

Description

Currently samply does NOT support record in FreeBSD - will need to use dtrace for this.

#!/bin/bash
$@ &
TRACE_PROBE="profile-397 /pid == $! && arg1/ { @[ustack()] = count(); } tick-60s { exit(0); }"
sudo dtrace -Z -n "$TRACE_PROBE" -o dtrace-out.user_stacks 2>/dev/null || exit

This kind of "remote invokation" works usually... but libdtrace exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions