Filter for the action. If you win more than you would lose folding, it's profitable.
You want to use something like Flopzilla though, construct ranges and see if it's profitable to 3b/4b. It could be that you are not playing it properly, or against the wrong players, and that can skew your winnings based on your results. Flopzilla will show you whether it is theoretically profitable. So will Snowie - for playing against tougher players.