als and locals,
    optionally saving results in filename.

    statement and filename have the same semantics as profile.run
    )