diff options
author | Radek Doulik <rodo@xamarin.com> | 2017-10-09 22:20:30 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-10-11 17:53:23 +0300 |
commit | 7c4dab5f12d9bff12653e198b0ade5c62767a1de (patch) | |
tree | ba12a91d0159508be1f04d7943d212c0889a9c4e /linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBackingFieldAttribute.cs | |
parent | f7088e9c17379861ebe04dca1b568e6adaaf31f1 (diff) |
Improve dependency dumping
Push actual custom attribute type instead of cecil custom attribute
instance. It also makes dependency graph more spread as we have more
vertices instead of one overused.
So for example we now have:
`TypeDef:System.Runtime.InteropServices.ComVisibleAttribute`
vertex instead of `Other:Mono.Cecil.CustomAttribute`
Do not add predicate method to the dependencies. It doesn't add much
value and makes the graph having vertex with too many edges, so we had
a lot of vertices with 15k+ total dependencies in flat view for XA
template application. Like:
```
Distance | TypeDef:Android.App.ActivityAttribute [total deps: 15100]
------------------------------------------------------------------------
1 | Method:System.Void Android.App.ActivityAttribute::.ctor()
2 | Other:Mono.Cecil.CustomAttribute
3 | TypeDef:System.Object
...
```
Now we have:
```
Distance | TypeDef:Android.App.ActivityAttribute [total deps: 9]
------------------------------------------------------------------------
1 | Method:System.Void Android.App.ActivityAttribute::.ctor()
2 | TypeRef:Android.App.ActivityAttribute
3 | TypeDef:XATemplateLA.MainActivity
...
```
Diffstat (limited to 'linker/Tests/Mono.Linker.Tests.Cases.Expectations/Assertions/KeptBackingFieldAttribute.cs')
0 files changed, 0 insertions, 0 deletions