There you should find there is PDF document on ModelSIM Signal Spy. Signal Spy uses a VHDL procedure that can be find when you search <your ModelSIM installation directory>/vhdl_src/modelsim_lib/mti_util.vhd
Or the alternative is visit Model Technology Official homepage.