It looks like if you add the following line to incudes/tools/class-alg-wc-cost-of-goods-core.php in between line 573 and 574 (create a new line):
$profit += $order->get_shipping_total();
that is all it needs. You may want to make this an option though (EG, “Add shipping total as profit” in shipping settings)