New in Symfony 6.1: Serializer Profiling
Symfony 6.1 is backed by:
Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.
The Symfony Serializer component design is based on the chain-of-responsibility pattern. That makes it hard to know which normalizers and encoders are used during the entire (de)serialization process.
That's why in Symfony 6.1 we've added a new Serializer panel in the Symfony Profiler:
This feature decorates the
serializer service to trace the activity of the
decode() methods calls. All normalizers and encoders are
decorated as well, so you'll get the full details and total duration of all
You don't need to add or configure anything to enjoy this feature. Just update your project to Symfony 6.1 and you'll get the new debugging information in the Symfony profiler.
Help the Symfony project!
As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.
Set value of confiuration `framework.profiler.collect_serializer_data` to `true`