Initializes a new instance of the xtd::diagnostics::stack_frame class, optionally capturing source information.