Measuring black hole mass through variable line profiles from accretion disks