Embedded displays can be used in code via views_embed_view().
Live preview settings
Show SQL query
Drupal has the potential to run many queries while a view is being rendered. Checking this box will display every query run during view render as part of the live preview.