A single-shot transient-grating frequency-resolved optical gating(TG-FROG) device was set up to measure UV ultrashort pulse laser with pulse duration within 10 ps. The performance of the device was demonstrated by experimental data measured on discharge-pumped KrF laser which is operated in 10 Hz repeated frequency mode, and on electron-beam-pumped KrF laser which is only operated in single-shot mode. For the former, the TG-FROG can distinguish the changes of the pulse shape, spectrum and phase when the pulse chirp is changed. For the later, the TG-FROG finds that the pulse shape has multiple peaks whose pulse duration is about 2 ps, and the spectrum is modulated whose bandwidth is about 1.3 nm, and the corresponding phases present parabolic structure.