Nanostructured magnetic materials play an important role in increasing miniaturized devices. For the studies of their magnetic properties and behaviors, nanoscale imaging of magnetic field is indispensible. Here, using electron holography, the magnetization distribution of a TMR spin valve head of commercial design is investigated without and with a magnetic field applied. Characterized is the magnetic flux distribution in complex hetero-nanostructures by averaging the phase images and separating their component magnetic vectors and electric potentials. The magnetic flux densities of the NiFe (shield and 5 nm-free layers) and the CoPt (20 nm-bias layer) are estimated to be 1.0 T and 0.9 T, respectively. The changes in the magnetization distribution of the shield, bias, and free layers are visualized in situ for an applied field of 14 kOe. This study demonstrates the promise of electron holography for characterizing the magnetic properties of hetero-interfaces, nanostructures, and catalysts.