Online optimization and measurement of femtosecond laser pulse in multi-petawatt laser facility