If you want to do the supreme calculations to figure out how to drive your car on paper, input your dyno graphs and gearing into a spreadsheet and make yourself a graph like this one. This graph reflects torque to the axles in an ITR for each gear comparing 3 different final drive options.
Build a graph like this, and you can figure out when its best to shift, which will almost always be redline.
Another thing you can TRY and do but its really sloppy, is estimate roughly how much torque it seems like your tires can take before they let go, and try and stay under that but close to it as possible. Tons of error in there though as so many things will cause the tires traction limit to fluctuate heavily on a street car. It can get closer though if you work at doing things consistently as far as tire pressure and temps and application of clutch.