diff --git a/classes/Backtrace.php b/classes/Backtrace.php
index <HASH>..<HASH> 100644
--- a/classes/Backtrace.php
+++ b/classes/Backtrace.php
@@ -54,8 +54,8 @@ class QM_Backtrace {
 	protected $calling_line    = 0;
 	protected $calling_file    = '';
 
-	public function __construct( array $args = array() ) {
-		$this->trace = debug_backtrace( false );
+	public function __construct( array $args = array(), array $trace = null ) {
+		$this->trace = $trace ? $trace : debug_backtrace( false );
 
 		$args = array_merge( array(
 			'ignore_current_filter' => true,
Support passing backtrace to QM_Backtrace