Profit-aware Resource Management for Edge Computing Systems