I just noticed that Slic3r writes the volume of filament used on the GCode, it's at the end of the print code, before the settings section. That makes calculating the weight of filament needed for a print much easier.