Femtosecond profiling of shaped x-ray pulses. (26th March 2018)