The costs of such proceedings as shall be had under the provisions of this chapter shall be in the discretion of the presiding judge.