Enable Developer Dashboard via stsadm :
stsadm -o setproperty -pn developer-dashboard -pv ondemand
To disable Developer Dashboard:
stsadm -o setproperty -pn developer-dashboard -pv off