collider2d how to measure??

I’m trying to make a game where the character has to walk on top of things. I need to know the percentage of path that has come in each subject. I already tried with the size collider, but I use colliders2d in various shapes. How can I measure a collider shaped curve or otherwise ???

use Collider2d.Bounds